Skip to content

Commit

Permalink
add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
saxix committed Feb 7, 2025
1 parent 9de2e9b commit ffcbb30
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ src/adminactions/version.py
/docs/build
/MANIFEST
coverage.xml
sonar-project.properties
.venv/
uv.lock
!.pre-commit-config.yaml
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.31.0
hooks:
- id: check-github-workflows
args: [ "--verbose" ]
- repo: https://github.com/tox-dev/tox-ini-fmt
rev: "1.5.0"
hooks:
- id: tox-ini-fmt
args: [ "-p", "lint" ]
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "v2.5.0"
hooks:
- id: pyproject-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.9.4"
hooks:
- id: ruff-format
- id: ruff
args: [ "--fix", "--unsafe-fixes", "--exit-non-zero-on-fix" ]
- repo: https://github.com/adamchainz/djade-pre-commit
rev: "1.3.2"
hooks:
- id: djade
args: [ --target-version, "5.1" ] # Replace with Django version
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes

0 comments on commit ffcbb30

Please sign in to comment.