Skip to content

Commit

Permalink
Update pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWilhelm committed Mar 31, 2024
1 parent 7812a21 commit 43f2d85
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions {{cookiecutter.project_slug}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,23 @@ repos:
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-docstring-first
- id: debug-statements
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-xml
- id: check-yaml
args: ['--unsafe'] # needed for !! tags in mkdocs.yml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=auto'] # replace 'auto' with 'lf' to enforce Linux/Mac line endings or 'crlf' for Windows

# Ruff replaces black, flake8, autoflake and isort
# Ruff replaces black, flake8, autoflake, isort and more
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.3.2' # make sure this is always consistent with hatch configs
rev: 'v0.3.4' # make sure this is always consistent with hatch configs
hooks:
- id: ruff
- id: ruff-format
Expand Down

0 comments on commit 43f2d85

Please sign in to comment.