misc: add djhtml files/notes (#69422)

This commit is contained in:
Valentin Deniaud 2022-09-29 17:24:24 +02:00
parent a5ec15a465
commit e1cee0503f
3 changed files with 11 additions and 0 deletions

View File

@ -4,3 +4,5 @@
f014f154640dc30fd27662ec6d93ae6e64125ea3
# misc: apply pyupgrade (#69708)
a107b7ef0e847882dcd6d5fc8c39e8feccc5705e
# misc: apply djhtml (#69422)
a5ec15a465840c454ed1d94547be821523fed473

View File

@ -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
View File

@ -188,6 +188,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.)