From 9e4276ce09c9d966ad6c4457cbbd0e8409e15430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sviatoslav=20Sydorenko=20=28=D0=A1=D0=B2=D1=8F=D1=82=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1=D0=B8=D0=B4=D0=BE=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE=29?= Date: Mon, 12 Aug 2024 17:35:38 +0200 Subject: [PATCH] Stop passing filenames to `nitpick-check` @ pre-commit hooks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default is `pass_filenames: true`. This was causing the checks to be skipped even with `pre-commit run --all-files`. The hook was returning successful validation while there were multiple violations. Signed-off-by: Sviatoslav Sydorenko (Святослав Сидоренко) --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 64565a65..22f1d834 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -27,3 +27,4 @@ description: "Only check configuration files (TOML/INI/JSON/etc.) and print the violations, according to the Nitpick style" entry: nitpick check language: python + pass_filenames: false