Skip to content

Commit b3bbfdc

Browse files
committed
chore: exclude .gira directory from pre-commit formatting
Exclude .gira/ directory from pre-commit hooks to prevent modifications to Gira-managed files: - trailing-whitespace: skip .gira/ - end-of-file-fixer: skip .gira/ - check-json: skip .gira/ (along with .vscode/) This prevents the need to amend commits when Gira updates ticket JSON files during workflow transitions.
1 parent 9b5141d commit b3bbfdc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ repos:
33
rev: v5.0.0
44
hooks:
55
- id: trailing-whitespace
6+
exclude: ^\.gira/
67
- id: end-of-file-fixer
8+
exclude: ^\.gira/
79
- id: check-yaml
810
args: ['--unsafe'] # Allow custom YAML tags in mkdocs.yml
911
- id: check-toml
1012
- id: check-json
11-
exclude: ^\.vscode/ # VS Code uses JSONC (JSON with comments)
13+
exclude: ^(\.vscode/|\.gira/) # VS Code uses JSONC, .gira managed by gira tool
1214
- id: check-merge-conflict
1315
- id: check-added-large-files
1416
args: ["--maxkb=1000"]

0 commit comments

Comments
 (0)