diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f75f5df..251a3ef 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -89,3 +89,9 @@ repos: - id: python-check-mock-methods - id: python-no-log-warn - id: python-use-type-annotations + + - repo: https://github.com/adamchainz/django-upgrade + rev: "1.24.0" # replace with latest tag on GitHub + hooks: + - id: django-upgrade + args: [--target-version, "4.2"]