misc: add djhtml files/notes (#69422)
This commit is contained in:
parent
26c2382615
commit
1a14050ef2
|
@ -2,3 +2,5 @@
|
||||||
2bf37aaa7e459d429fca284f2de60add5841d063
|
2bf37aaa7e459d429fca284f2de60add5841d063
|
||||||
# trivial: apply isort (#55470)
|
# trivial: apply isort (#55470)
|
||||||
0f75316e1b9a70e311d2971e75b32f84b00f487a
|
0f75316e1b9a70e311d2971e75b32f84b00f487a
|
||||||
|
# misc: apply djhtml (#69422)
|
||||||
|
26c238261585ce358808b562e10b39c67cfe7f3e
|
||||||
|
|
|
@ -11,6 +11,11 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
args: ['--profile', 'black', '--line-length', '110']
|
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
|
- repo: https://git.entrouvert.org/pre-commit-debian.git
|
||||||
rev: v0.1
|
rev: v0.1
|
||||||
hooks:
|
hooks:
|
||||||
|
|
10
README
10
README
|
@ -23,9 +23,13 @@ Similarly, isort is used for imports, using these parameters:
|
||||||
|
|
||||||
isort --profile black --line-length 110
|
isort --profile black --line-length 110
|
||||||
|
|
||||||
There is .pre-commit-config.yaml to use pre-commit to automatically run black
|
djhtml is used to automatically indent html files, using those parameters:
|
||||||
and isort before commits. (execute `pre-commit install` to install the git
|
|
||||||
hook.)
|
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
|
License
|
||||||
|
|
Loading…
Reference in New Issue