misc: add djhtml files/notes (#69419)

This commit is contained in:
Valentin Deniaud 2022-09-22 10:11:31 +02:00
parent dfdbaf2b8a
commit d2cda8d8d1
3 changed files with 13 additions and 2 deletions

View File

@ -10,3 +10,5 @@ a11be8fa590ad3d02a903dacb8393336b989a1a6
ff0d3779c024ba3a0109b91d9337aadd06b06788
# misc: apply black 22.1.0
877155f01d014e8fc778014c55e6a693247261f7
# misc: apply djhtml (#69419)
dfdbaf2b8ab7202643701eb87edbdee1b1a137e4

View File

@ -16,6 +16,11 @@ repos:
hooks:
- id: pyupgrade
args: ['--keep-percent-format', '--py37-plus']
- 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
View File

@ -47,9 +47,13 @@ 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:
django-upgrade --tabwidth 2
There is .pre-commit-config.yaml to use pre-commit to automatically run black,
isort and pyupgrade before commits. (execute `pre-commit install` to install
the git hook.)
isort, pyupgrade, and djhtml before commits. (execute `pre-commit install`
to install the git hook.)
Copyright