From a6ef3a1643014cf9af30c183a67ac0d3d5403ab7 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 13 Mar 2024 07:21:40 +0100 Subject: [PATCH] lint: Ignore test functions in vulture These aren't unused, but discovered/enumerated by `unittest` or `pytest`. --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 4e8b03f..67c7a58 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,3 +42,8 @@ mark-parentheses = false [tool.ruff.lint.isort] known-first-party = ["cockpit"] + +[tool.vulture] +ignore_names = [ + "test[A-Z0-9]*", +]