Skip to content

Commit e033b55

Browse files
committed
fix: exclude test_data from pre-commit file modifications
Revert changes to test data XML files and add exclude patterns to prevent pre-commit hooks from modifying test data and example files.
1 parent dafc01c commit e033b55

16 files changed

+5790
-5785
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,19 @@ repos:
1818
- id: check-toml
1919
- id: debug-statements
2020
- id: end-of-file-fixer
21+
exclude: ^(test_data|docs/example)/
2122
- id: trailing-whitespace
23+
exclude: ^(test_data|docs/example)/
2224
- id: mixed-line-ending
2325
args: ["--fix=lf"]
26+
exclude: ^(test_data|docs/example)/
2427

2528
# Line ending normalization
2629
- repo: https://github.com/Lucas-C/pre-commit-hooks
2730
rev: "v1.5.5"
2831
hooks:
2932
- id: remove-crlf
33+
exclude: ^(test_data|docs/example)/
3034

3135
# Prettier for markdown, yaml, html, json formatting
3236
- repo: https://github.com/pre-commit/mirrors-prettier

0 commit comments

Comments
 (0)