Set target-version for django upgrade to 4.2

This commit is contained in:
Jelmer Draaijer 2023-06-28 08:38:04 +02:00
parent c15eb6d97a
commit ef36732569
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ def test_django_upgrade_passes(cookies, context_override):
try:
sh.django_upgrade(
"--target-version",
"4.1",
"4.2",
*python_files,
_cwd=str(result.project_path),
)

View File

@ -28,7 +28,7 @@ repos:
rev: '1.13.0'
hooks:
- id: django-upgrade
args: ['--target-version', '4.1']
args: ['--target-version', '4.2']
- repo: https://github.com/asottile/pyupgrade
rev: v3.6.0