Skip to content

Commit

Permalink
add more precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
blooop committed Nov 14, 2024
1 parent 19fb1a8 commit 4c848b1
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ repos:
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: check-toml
- id: check-xml
- id: pretty-format-json
- id: name-tests-test
- id: detect-private-key
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
args: ['--unsafe'] # Fixes errors parsing custom jinja templates
# - id: debug-statements
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
# - id: trailing-whitespace
Expand All @@ -42,3 +51,10 @@ repos:
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi ]
# Checks for spelling mistakes
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0 #TODO latest version 2.3.0 finds a lot of spelling mistakes but fails on "assertIn"
hooks:
- id: codespell
args: ['--write-changes']
exclude: \.(svg|pyc|lock|json)$

0 comments on commit 4c848b1

Please sign in to comment.