misc: add djhtml files/notes (#69422)
This commit is contained in:
parent
d20066dc44
commit
bd45e64b48
|
@ -1,3 +1,5 @@
|
|||
5b9bc1ff57cfb47458d629c15bcae28ae0bc141b
|
||||
# apply isort and pyupgrade
|
||||
4729ef9a3bdf2f09541469802d0e7cc3b6a48405
|
||||
# misc: apply djhtml (#69422)
|
||||
d20066dc440cbffc765978f222bd97958753978e
|
||||
|
|
|
@ -16,3 +16,8 @@ repos:
|
|||
hooks:
|
||||
- id: pyupgrade
|
||||
args: ['--keep-percent-format', '--py37-plus']
|
||||
- repo: https://github.com/rtts/djhtml
|
||||
rev: 'v1.5.2'
|
||||
hooks:
|
||||
- id: djhtml
|
||||
args: ['--tabwidth', '2']
|
||||
|
|
8
README
8
README
|
@ -343,9 +343,13 @@ pyupgrade is used to automatically upgrade syntax, using those parameters:
|
|||
|
||||
pyupgrade --keep-percent-format --py37-plus
|
||||
|
||||
djhtml is used to automatically indent html files, using those parameters:
|
||||
|
||||
django-upgrade --tabwidth 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 djhtml before commits. (execute `pre-commit install`
|
||||
to install the git hook.)
|
||||
|
||||
Remarks
|
||||
=======
|
||||
|
|
Loading…
Reference in New Issue