Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
exclude: "{{dxh_py.project_slug}}|.github/contributors.json|CHANGELOG.md|CONTRIBUTORS.md"
default_stages: [commit]
default_stages: [pre-commit]

default_language_version:
python: python3.12

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -26,24 +26,24 @@ repos:
args: ["--tab-width", "2"]

- repo: https://github.com/asottile/pyupgrade
rev: v3.17.0
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py312-plus]
exclude: hooks/

- repo: https://github.com/psf/black
rev: 24.8.0
rev: 26.1.0
hooks:
- id: black

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 8.0.0
hooks:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 7.1.1
rev: 7.3.0
hooks:
- id: flake8

Expand Down
10 changes: 5 additions & 5 deletions {{dxh_py.project_slug}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
exclude: '^docs/|/migrations/|devcontainer.json'
default_stages: [commit]
default_stages: [pre-commit]

default_language_version:
python: python3.12

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -28,14 +28,14 @@ repos:
exclude: '{{dxh_py.project_slug}}/templates/'

- repo: https://github.com/adamchainz/django-upgrade
rev: '1.20.0'
rev: '1.29.1'
hooks:
- id: django-upgrade
args: ['--target-version', '5.0']

# Run the Ruff linter.
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.2
rev: v0.15.2
hooks:
# Linter
- id: ruff
Expand All @@ -44,7 +44,7 @@ repos:
- id: ruff-format

- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.34.1
rev: v1.36.4
hooks:
- id: djlint-reformat-django
- id: djlint-django
Expand Down