diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..68d3452a6 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,9 @@ +default_language_version: + python: python3.12 + +repos: +- repo: https://github.com/adamchainz/django-upgrade + rev: "1.20.0" + hooks: + - id: django-upgrade + args: [ --target-version, "4.2" ] diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 000000000..2b056f971 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,9 @@ +- id: django-upgrade + name: django-upgrade + description: Automatically upgrade your Django project code. + entry: django-upgrade + language: python + types: [python] + # for backward compatibility + files: '' + minimum_pre_commit_version: 0.15.0 \ No newline at end of file