From 7e940e1ce75853d204cafc3e8418e63b24b69a34 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]*", +]