0002-misc-add-djhtml-files-notes-69422.patch
.git-blame-ignore-revs | ||
---|---|---|
4 | 4 |
29bc8e66a978b1bbadbc05186599a70ce1b8ef98 |
5 | 5 |
# misc: apply pyupgrade (#55868) |
6 | 6 |
f4615c506194cf4eace0af551f14f54552f09dc5 |
7 |
# misc: apply djhtml (#69422) |
|
8 |
c3948e1741a1ee4f42e964c75696bfb76da88be3 |
.pre-commit-config.yaml | ||
---|---|---|
16 | 16 |
hooks: |
17 | 17 |
- id: pyupgrade |
18 | 18 |
args: ['--keep-percent-format', '--py37-plus'] |
19 |
- repo: https://github.com/rtts/djhtml |
|
20 |
rev: 'v1.5.2' |
|
21 |
hooks: |
|
22 |
- id: djhtml |
|
23 |
args: ['--tabwidth', '2'] |
|
19 | 24 |
- repo: https://git.entrouvert.org/pre-commit-debian.git |
20 | 25 |
rev: v0.1 |
21 | 26 |
hooks: |
README | ||
---|---|---|
104 | 104 | |
105 | 105 |
pyupgrade --keep-percent-format --py37-plus |
106 | 106 | |
107 |
djhtml is used to automatically indent html files, using those parameters: |
|
108 | ||
109 |
django-upgrade --tabwidth 2 |
|
110 | ||
107 | 111 |
There is .pre-commit-config.yaml to use pre-commit to automatically run black, |
108 |
isort and pyupgrade before commits. (execute `pre-commit install` to install
|
|
109 |
the git hook.) |
|
112 |
isort, pyupgrade, and djhtml before commits. (execute `pre-commit install`
|
|
113 |
to install the git hook.)
|
|
110 | 114 | |
111 | 115 | |
112 | 116 |
License |
113 |
- |