Skip to content

Commit

Permalink
Stop passing filenames to nitpick-check @ pre-commit hooks
Browse files Browse the repository at this point in the history
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 (Святослав Сидоренко) <[email protected]>
  • Loading branch information
webknjaz authored Aug 12, 2024
1 parent b7ec9c8 commit 9e4276c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e4276c

Please sign in to comment.