-
Notifications
You must be signed in to change notification settings - Fork 5
/
.pre-commit-config.yaml
55 lines (52 loc) · 1.22 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ci:
autofix_commit_msg: 'chore(pre-commit): autofix run'
autoupdate_commit_msg: 'chore(pre-commit): autoupdate hooks'
autoupdate_branch: dev
autoupdate_schedule: weekly
default_install_hook_types:
- pre-commit
- commit-msg
exclude: >
(?x)(
migrations/|
migrations_dev/|
package-lock.json|
poetry.lock|
web/static/.*\.min.*|
web/static/fonts/|
web/static/css/
)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: pretty-format-json
args: [--autofix]
- id: check-json
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
exclude: migrations* | docs*
additional_dependencies: [toml]
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
language_version: python3.9
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.10.0
hooks:
- id: pretty-format-toml
args: [--autofix]
- id: pretty-format-ini
args: [--autofix]
- id: pretty-format-yaml
args: [--autofix, --indent, '2']
- repo: https://github.com/Riverside-Healthcare/djLint
rev: v1.33.0
hooks:
- id: djlint-jinja