misc: add djhtml files/notes (#69422)

This commit is contained in:
Valentin Deniaud 2022-09-29 12:11:13 +02:00
parent 26c2382615
commit 1a14050ef2
3 changed files with 14 additions and 3 deletions

View File

@ -2,3 +2,5 @@
2bf37aaa7e459d429fca284f2de60add5841d063
# trivial: apply isort (#55470)
0f75316e1b9a70e311d2971e75b32f84b00f487a
# misc: apply djhtml (#69422)
26c238261585ce358808b562e10b39c67cfe7f3e

View File

@ -11,6 +11,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:

10
README
View File

@ -23,9 +23,13 @@ Similarly, isort is used for imports, using these parameters:
isort --profile black --line-length 110
There is .pre-commit-config.yaml to use pre-commit to automatically run black
and isort before commits. (execute `pre-commit install` to install the git
hook.)
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 djhtml before commits. (execute `pre-commit install` to install the
git hook.)
License