misc: add djhtml files/notes (#69422)
This commit is contained in:
parent
d20066dc44
commit
bd45e64b48
|
@ -1,3 +1,5 @@
|
||||||
5b9bc1ff57cfb47458d629c15bcae28ae0bc141b
|
5b9bc1ff57cfb47458d629c15bcae28ae0bc141b
|
||||||
# apply isort and pyupgrade
|
# apply isort and pyupgrade
|
||||||
4729ef9a3bdf2f09541469802d0e7cc3b6a48405
|
4729ef9a3bdf2f09541469802d0e7cc3b6a48405
|
||||||
|
# misc: apply djhtml (#69422)
|
||||||
|
d20066dc440cbffc765978f222bd97958753978e
|
||||||
|
|
|
@ -16,3 +16,8 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: ['--keep-percent-format', '--py37-plus']
|
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
|
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,
|
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
|
isort, pyupgrade, and djhtml before commits. (execute `pre-commit install`
|
||||||
the git hook.)
|
to install the git hook.)
|
||||||
|
|
||||||
Remarks
|
Remarks
|
||||||
=======
|
=======
|
||||||
|
|
Loading…
Reference in New Issue