Projet

Général

Profil

0002-misc-add-djhtml-files-notes-69419.patch

Valentin Deniaud, 22 septembre 2022 10:13

Télécharger (1,86 ko)

Voir les différences:

Subject: [PATCH 2/2] misc: add djhtml files/notes (#69419)

 .git-blame-ignore-revs  | 2 ++
 .pre-commit-config.yaml | 5 +++++
 README                  | 8 ++++++--
 3 files changed, 13 insertions(+), 2 deletions(-)
.git-blame-ignore-revs
10 10
ff0d3779c024ba3a0109b91d9337aadd06b06788
11 11
# misc: apply black 22.1.0
12 12
877155f01d014e8fc778014c55e6a693247261f7
13
# misc: apply djhtml (#69419)
14
05d6c52738b57fe521f2ce28173f3386bc32b767
.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
47 47

  
48 48
    pyupgrade --keep-percent-format --py37-plus
49 49

  
50
djhtml is used to automatically indent html files, using those parameters:
51

  
52
    django-upgrade --tabwidth 2
53

  
50 54
There is .pre-commit-config.yaml to use pre-commit to automatically run black,
51
isort and pyupgrade before commits. (execute `pre-commit install` to install
52
the git hook.)
55
isort, pyupgrade, and djhtml before commits. (execute `pre-commit install`
56
to install the git hook.)
53 57

  
54 58

  
55 59
Copyright
56
-