diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d66a9f..48a449d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -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 diff --git a/{{dxh_py.project_slug}}/.pre-commit-config.yaml b/{{dxh_py.project_slug}}/.pre-commit-config.yaml index 75be9c7..2702506 100644 --- a/{{dxh_py.project_slug}}/.pre-commit-config.yaml +++ b/{{dxh_py.project_slug}}/.pre-commit-config.yaml @@ -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 @@ -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 @@ -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