Skip to content

Commit 06b72f9

Browse files
committed
pre-commit: Exclude Piskel files from whitespace checks
Like SVGs, these are stored as plain text, but are not meant to be hand-edited. The “identify” library doesn't recognise *.piskel files as images. Match them by filename. I submitted pre-commit/identify#541 to teach identify about these files; if that change is accepted and released this could be reverted.
1 parent e92fd6d commit 06b72f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ repos:
1414
- id: check-illegal-windows-names
1515
- id: check-yaml
1616
- id: end-of-file-fixer
17+
exclude: \.piskel$
1718
exclude_types: [image]
1819
- id: trailing-whitespace
20+
exclude: \.piskel$
1921
exclude_types: [image]
2022

2123
- repo: https://github.com/editorconfig-checker/editorconfig-checker

0 commit comments

Comments
 (0)