From 73df02f0d7c6634e0777a71315a71694cbec1263 Mon Sep 17 00:00:00 2001 From: Jendrik Seipp Date: Mon, 25 Nov 2024 08:19:17 +0100 Subject: [PATCH] Add comment regarding pass_filenames. --- .pre-commit-hooks.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 8d2df77e..fc796f59 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -4,6 +4,9 @@ entry: vulture description: Find unused Python code. types: [python] + # Vulture needs access to all files for a complete analysis, so we + # prevent pre-commit from passing only the changed files. Instead, + # please create a `pyproject.toml` file in your repository and specify + # all files that Vulture should check under `[tool.vulture] --> paths`. pass_filenames: false require_serial: true -