Skip to content

Commit 95e8466

Browse files
committed
ci: exclude binary GP files from end-of-file-fixer + trim gpif.py trailing blank
The pre-commit `end-of-file-fixer` and `trailing-whitespace` hooks treat binary Guitar Pro files (.gp, .gp3..gp8, .gpx, .tmp) as text and report spurious "files modified" failures on every CI run. Add an exclude pattern covering all GP binary extensions so the hooks only act on real text sources. Also drop the extra trailing newline at the end of `src/guitarpro/gpif.py` that the same hook flagged.
1 parent f8a863b commit 95e8466

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ repos:
1515
rev: v6.0.0
1616
hooks:
1717
- id: trailing-whitespace
18+
exclude: '\.(gp|gp3|gp4|gp5|gp7|gp8|gpx|tmp)$'
1819
- id: end-of-file-fixer
20+
exclude: '\.(gp|gp3|gp4|gp5|gp7|gp8|gpx|tmp)$'

src/guitarpro/gpif.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2640,4 +2640,3 @@ def _empty_beat(voice: gp.Voice) -> gp.Beat:
26402640
beat.status = gp.BeatStatus.empty
26412641
beat.notes = []
26422642
return beat
2643-

0 commit comments

Comments
 (0)