From b628341814f9ff3cc5da85732f09d8fb897fd54a Mon Sep 17 00:00:00 2001 From: twsl <45483159+twsl@users.noreply.github.com> Date: Fri, 10 Jan 2025 03:15:10 +0100 Subject: [PATCH 1/2] Add vulture --- project/pyproject.toml.jinja | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/project/pyproject.toml.jinja b/project/pyproject.toml.jinja index bde1e34..05069db 100644 --- a/project/pyproject.toml.jinja +++ b/project/pyproject.toml.jinja @@ -42,6 +42,7 @@ ruff = "^0.8.6" bandit = "^1.8.0" pre-commit = "^4.0.1" pyright = "^1.1.391" +vulture = "^2.14" {% if include_notebooks %}ipykernel = "^6.29.5" ipywidgets = "^8.1.5" ipython = "^8.31.0" @@ -236,3 +237,9 @@ pythonPlatform = "Linux" include = ["src"] reportMissingImports = true reportMissingTypeStubs = false + +[tool.vulture] +sort_by_size = true +verbose = false +min_confidence = 70 +paths = ["src"] From 36aeeb3548da30d88c0e15a1405546ac77bc1dfb Mon Sep 17 00:00:00 2001 From: twsl <45483159+twsl@users.noreply.github.com> Date: Fri, 10 Jan 2025 03:15:53 +0100 Subject: [PATCH 2/2] Update pre-commit.config --- ... use_precommit %}.pre-commit-config.yaml{% endif %}.jinja | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/project/{% if use_precommit %}.pre-commit-config.yaml{% endif %}.jinja b/project/{% if use_precommit %}.pre-commit-config.yaml{% endif %}.jinja index 2ce08b5..3946f11 100644 --- a/project/{% if use_precommit %}.pre-commit-config.yaml{% endif %}.jinja +++ b/project/{% if use_precommit %}.pre-commit-config.yaml{% endif %}.jinja @@ -69,6 +69,11 @@ repos: language: system types: [python] +- repo: https://github.com/jendrikseipp/vulture + rev: v2.14 + hooks: + - id: vulture + - repo: https://github.com/gitleaks/gitleaks rev: v8.22.1 hooks: