Skip to content

Commit 6f9ab74

Browse files
committed
1 parent c6bdd3c commit 6f9ab74

File tree

3 files changed

+54
-3
lines changed

3 files changed

+54
-3
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,13 @@ repos:
4949
# Never update dependencies and only run on changes to pyproject.toml
5050
args: [--no-update]
5151
files: ^pyproject.toml$
52+
53+
- repo: https://github.com/adamchainz/django-upgrade
54+
rev: '1.29.1' # update with latest tag on GitHub
55+
hooks:
56+
- id: django-upgrade
57+
args: [--target-version, '5.2'] # Django version used in this site
58+
- repo: https://github.com/asottile/pyupgrade
59+
rev: v3.21.2
60+
hooks:
61+
- id: pyupgrade

poetry.lock

Lines changed: 40 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,11 @@ honcho = "^2.0.0"
5050

5151
# Linters etc.
5252
detect-secrets = "^1.5.0"
53-
djhtml = "^3.0.10" # update pre-commit-config.yaml too
54-
ruff = "^0.14.8" # update pre-commit-config.yaml too
53+
django-upgrade = "^1.29.1" # update pre-commit-config.yaml too
54+
djhtml = "^3.0.10" # update pre-commit-config.yaml too
55+
pyupgrade = "^3.21.2" # update pre-commit-config.yaml too
5556
pre-commit = "^4.2.0"
57+
ruff = "^0.14.8" # update pre-commit-config.yaml too
5658

5759
# Documentation
5860
mkdocs = "^1.6.1"

0 commit comments

Comments
 (0)