test(api): add django-upgrade pre-commit hook

This commit is contained in:
jo 2023-04-24 16:47:32 +02:00 committed by Kyle Robbertze
parent f357fb64b7
commit 14357102e5
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ repos:
- id: pyupgrade - id: pyupgrade
args: [--py38-plus] args: [--py38-plus]
- repo: https://github.com/adamchainz/django-upgrade
rev: 1.13.0
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
- repo: https://github.com/pycqa/isort - repo: https://github.com/pycqa/isort
rev: 5.12.0 rev: 5.12.0
hooks: hooks: