misc: add django-upgrade files/notes (#69401)
This commit is contained in:
parent
25e44f286f
commit
93c95c53a3
|
@ -16,6 +16,11 @@ repos:
|
|||
hooks:
|
||||
- id: pyupgrade
|
||||
args: ['--keep-percent-format', '--py37-plus']
|
||||
- repo: https://github.com/adamchainz/django-upgrade
|
||||
rev: 1.10.0
|
||||
hooks:
|
||||
- id: django-upgrade
|
||||
args: ['--target-version', '2.2']
|
||||
- repo: https://git.entrouvert.org/pre-commit-debian.git
|
||||
rev: v0.1
|
||||
hooks:
|
||||
|
|
8
README
8
README
|
@ -44,9 +44,13 @@ pyupgrade is used to automatically upgrade syntax, using those parameters:
|
|||
|
||||
pyupgrade --keep-percent-format --py37-plus
|
||||
|
||||
django-upgrade is used to automatically upgrade Django syntax, using those parameters:
|
||||
|
||||
django-upgrade --target-version 2.2
|
||||
|
||||
There is .pre-commit-config.yaml to use pre-commit to automatically run black,
|
||||
isort and pyupgrade before commits. (execute `pre-commit install` to install
|
||||
the git hook.)
|
||||
isort, pyupgrade and django-upgrade before commits. (execute `pre-commit install`
|
||||
to install the git hook.)
|
||||
|
||||
|
||||
Tests
|
||||
|
|
Loading…
Reference in New Issue