From 8b0766d4888d0109b5cc09d1228748c408e19e3f Mon Sep 17 00:00:00 2001 From: Laurent Monin Date: Tue, 14 May 2024 21:03:17 +0200 Subject: [PATCH] Update pre-commit example - some files were ignored, but there's no reason anymore - use git diff --diff-filter=ACM to avoid to check removed files or so --- CONTRIBUTING.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7e97eedb5..2ee41f22a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,11 +25,10 @@ and make it executable: ```bash #!/usr/bin/env bash -PYFILES=$(git diff --cached --name-only | grep "\\.py$" | grep --invert-match \ +PYFILES=$(git diff --cached --name-only --diff-filter=ACM| grep "\\.py$" | grep --invert-match \ -e "^tagger\\.py$" \ -e "^picard/resources\\.py$" \ - -e "^picard/\(coverart/providers\|formats\)/__init__\\.py$" \ - -e "^picard/const/\(__init__\|attributes\|countries\)\\.py$" \ + -e "^picard/const/\(attributes\|countries\)\\.py$" \ -e "^picard/ui/ui_.*\\.py$" \ -e "^scripts/picard\\.in$")