mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-22 09:18:18 +00:00
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
This commit is contained in:
@@ -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$")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user