misc: add djhtml files/notes (#69422)
This commit is contained in:
parent
6da81964bd
commit
8b04e43c1a
|
@ -6,3 +6,5 @@
|
|||
d2c0be039649febded68d9d04f745cd18b2b2e03
|
||||
# misc: apply pyupgrade (#61865)
|
||||
989fb5271967e8e87fd57837dd6d8cfe932e7ebe
|
||||
# misc: apply djhtml (#69422)
|
||||
6da81964bd91b5656364357ec06776fed3529c8a
|
||||
|
|
|
@ -16,6 +16,11 @@ repos:
|
|||
hooks:
|
||||
- id: isort
|
||||
args: ['--profile', 'black', '--line-length', '110']
|
||||
- repo: https://github.com/rtts/djhtml
|
||||
rev: 'v1.5.2'
|
||||
hooks:
|
||||
- id: djhtml
|
||||
args: ['--tabwidth', '2']
|
||||
- repo: https://git.entrouvert.org/pre-commit-debian.git
|
||||
rev: v0.1
|
||||
hooks:
|
||||
|
|
4
README
4
README
|
@ -70,6 +70,10 @@ 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:
|
||||
|
||||
djhtml --tabwidth 2
|
||||
|
||||
There is .pre-commit-config.yaml to use pre-commit to automatically run these tools
|
||||
before commits. (execute `pre-commit install` to install the git hook.)
|
||||
|
||||
|
|
Loading…
Reference in New Issue