Skip to content

Commit 1217ef1

Browse files
committed
chore: exclude known large file patterns
1 parent a8399b4 commit 1217ef1

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ repos:
33
rev: v4.5.0
44
hooks:
55
- id: check-added-large-files
6+
exclude: |
7+
(?x) # Verbose mode
8+
^juju/client/schemas-juju-.*[.]json$ |
9+
^tests/.*[.]charm$ |
10+
^examples/.*[.]charm$
611
- id: check-ast
712
- id: check-case-conflict
813
- id: check-executables-have-shebangs
@@ -11,30 +16,31 @@ repos:
1116
- id: check-symlinks
1217
- id: check-json
1318
- id: check-yaml
14-
# Overlays are deliberately multi-doc
19+
# Overlays deliberately comprise multiple YAML documents per file
1520
exclude: "^tests/integration/bundle/test-overlays/.*multi.*yaml$"
1621
- id: check-toml
1722
- id: mixed-line-ending
1823
- id: end-of-file-fixer
19-
exclude: "^juju/client/schemas-juju.*json$"
24+
exclude: "^juju/client/schemas-juju-.*[.]json$"
2025
- id: trailing-whitespace
2126
- id: detect-private-key
2227
exclude: "^tests/.*$"
23-
# Run the Ruff linter.
28+
2429
- repo: https://github.com/astral-sh/ruff-pre-commit
2530
rev: v0.7.3
2631
hooks:
2732
- id: ruff
2833
args: [ --preview, --fix ]
2934
- id: ruff-format
3035
args: [ --preview ]
31-
# Spellcheck the code.
36+
3237
- repo: https://github.com/codespell-project/codespell
3338
rev: v2.3.0
3439
hooks:
3540
- id: codespell
3641
additional_dependencies:
3742
- tomli
38-
exclude: "^juju/client/schemas-juju.*json$"
43+
exclude: "^juju/client/schemas-juju-.*[.]json$"
44+
3945
ci:
4046
autofix_prs: false

0 commit comments

Comments
 (0)