Skip to content

Commit

Permalink
Improve pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed May 14, 2024
1 parent 72d0153 commit c4f0b79
Showing 1 changed file with 24 additions and 8 deletions.
32 changes: 24 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
exclude: ^tin/static/.*vendor

repos:
- repo: local
hooks:
- id: format
name: format
entry: ./scripts/format.sh && test -z "$(git status --porcelain=v1 .)"
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
name: Validate Python
- id: trailing-whitespace
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: local
hooks:
- id: format
name: format
entry: ./scripts/format.sh && test -z "$(git status --porcelain=v1 .)"
language: system
types: [python]
pass_filenames: false
- repo: https://github.com/codespell-project/codespell
rev: v2.2.5
hooks:
- id: codespell
files: ^.*\.(py|md|rst)$
args: ["-L", "num,ans", "-w"]

0 comments on commit c4f0b79

Please sign in to comment.