From e1cee0503ff8e85f4e825cf0def32ba0229919e5 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Thu, 29 Sep 2022 17:24:24 +0200 Subject: [PATCH] misc: add djhtml files/notes (#69422) --- .git-blame-ignore-revs | 2 ++ .pre-commit-config.yaml | 5 +++++ README | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index a828448..6691c2e 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -4,3 +4,5 @@ f014f154640dc30fd27662ec6d93ae6e64125ea3 # misc: apply pyupgrade (#69708) a107b7ef0e847882dcd6d5fc8c39e8feccc5705e +# misc: apply djhtml (#69422) +a5ec15a465840c454ed1d94547be821523fed473 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c4fd3dc..1c607f2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: diff --git a/README b/README index 148cc12..7c72ffc 100644 --- a/README +++ b/README @@ -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.)