Skip to content

Commit

Permalink
chore: exclude known large file patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaqq committed Nov 14, 2024
1 parent a8399b4 commit 1217ef1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ repos:
rev: v4.5.0
hooks:
- id: check-added-large-files
exclude: |
(?x) # Verbose mode
^juju/client/schemas-juju-.*[.]json$ |
^tests/.*[.]charm$ |
^examples/.*[.]charm$
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
Expand All @@ -11,30 +16,31 @@ repos:
- id: check-symlinks
- id: check-json
- id: check-yaml
# Overlays are deliberately multi-doc
# Overlays deliberately comprise multiple YAML documents per file
exclude: "^tests/integration/bundle/test-overlays/.*multi.*yaml$"
- id: check-toml
- id: mixed-line-ending
- id: end-of-file-fixer
exclude: "^juju/client/schemas-juju.*json$"
exclude: "^juju/client/schemas-juju-.*[.]json$"
- id: trailing-whitespace
- id: detect-private-key
exclude: "^tests/.*$"
# Run the Ruff linter.

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
hooks:
- id: ruff
args: [ --preview, --fix ]
- id: ruff-format
args: [ --preview ]
# Spellcheck the code.

- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
additional_dependencies:
- tomli
exclude: "^juju/client/schemas-juju.*json$"
exclude: "^juju/client/schemas-juju-.*[.]json$"

ci:
autofix_prs: false

0 comments on commit 1217ef1

Please sign in to comment.