misc: add djhtml files/notes (#69404)
parent
7c0eb04c45
commit
6a8ebfcfd2
|
@ -15,3 +15,5 @@ e07c450d7c8a5f80aafe185c85ebed73fe39d9e7
|
|||
1ec4ad937602a52db6913e8ee9103fdb59be59f7
|
||||
# misc: apply black 22.1.0
|
||||
87e8203e0765948ecb8dd38b2fb3dc7195d561c9
|
||||
# misc: apply djhtml (#69404)
|
||||
7c0eb04c453f50cdffe0095148aa52580c20143e
|
||||
|
|
|
@ -21,6 +21,11 @@ repos:
|
|||
hooks:
|
||||
- id: django-upgrade
|
||||
args: ['--target-version', '2.2']
|
||||
- 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:
|
||||
|
|
8
README
8
README
|
@ -48,9 +48,13 @@ django-upgrade is used to automatically upgrade Django syntax, using those param
|
|||
|
||||
django-upgrade --target-version 2.2
|
||||
|
||||
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, pyupgrade and django-upgrade before commits. (execute `pre-commit install`
|
||||
to install the git hook.)
|
||||
isort, pyupgrade, django-upgrade and djhtml before commits. (execute
|
||||
`pre-commit install` to install the git hook.)
|
||||
|
||||
|
||||
Tests
|
||||
|
|
Loading…
Reference in New Issue