-
-
Notifications
You must be signed in to change notification settings - Fork 629
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
128 lines (118 loc) · 3.58 KB
/
.pre-commit-config.yaml
File metadata and controls
128 lines (118 loc) · 3.58 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
repos:
- repo: https://github.com/AleksaC/hadolint-py
rev: 458cb25edf664682e3e856a53a2f9af33e068297 # v2.14.0
hooks:
- id: hadolint
args:
- --failure-threshold=warning
name: hadolint
- repo: https://github.com/EbodShojaei/bake
rev: a39df91c8e2c8ee584f81ff8d7d00f137a5fc160 # v1.4.6
hooks:
- id: mbake-format
args:
- --config
- .bake.toml
- id: mbake-validate
args:
- --config
- .bake.toml
exclude: ^backend/
- repo: https://github.com/adrienverge/yamllint.git
rev: cba56bcde1fdd01c1deb3f945e69764c291a6530 # v1.38.0
hooks:
- id: yamllint
args:
- --format
- parsable
- --strict
exclude: pnpm-lock.yaml
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: d0e12caebb2ab0ee8bf98181c8bfe9702bca103d # v1.105.0
hooks:
- id: terraform_fmt
files: ^infrastructure/.*\.(tf|tftest\.hcl)$
- id: terraform_tflint
files: ^infrastructure/.*\.tf$
args:
- --args=--config=__GIT_WORKING_DIR__/infrastructure/.tflint.hcl
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: aca6d4c8045a504e2812ea4bedff1d0a09e437bc # v0.15.8
hooks:
- id: ruff-check
args:
- --fix
- id: ruff-format
- repo: https://github.com/djlint/djLint
rev: 9112cb64851c95a7802358af285d21ad8b7f6437 # v1.36.4
hooks:
- id: djlint-reformat-django
files: templates/.*.html
entry: djlint --reformat
types:
- html
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: e72a3ca1632f0b11a07d171449fe447a7ff6795e # v0.48.0
hooks:
- id: markdownlint
args:
- --fix
files: \.md$
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 8d1b9cadaf854cb25bb0b0f5870e1cc66a083d6b # 0.2.3
hooks:
- id: yamlfmt
args:
- --implicit_start
- --mapping=2
- --offset=2
- --sequence=4
exclude: (pnpm-lock.yaml|\.yamllint)
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 8e5c80792e2ec0c87804d8ef915bf35e2caea6da # v1.20.0
hooks:
- id: mypy
additional_dependencies:
- strawberry-graphql-django
- types-lxml
- types-python-dateutil
- types-PyYAML
- types-requests
args:
- --config-file
- backend/pyproject.toml
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: fix-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
exclude: frontend/src/types/__generated__
exclude_types:
- svg
- id: file-contents-sorter
args:
- --unique
files: (.github/workflows/check-pr-issue-skip-usernames.txt|cspell/custom-dict.txt)
- id: mixed-line-ending
args:
- --fix=lf
- id: name-tests-test
args:
- --pytest
exclude: backend/tests/data
files: backend/tests
- id: trailing-whitespace
exclude: pnpm-lock.yaml
- repo: https://github.com/tox-dev/pyproject-fmt
rev: 6e10264313f53d6247a8b1b984f5b5ccf50ba539 # v2.21.0
hooks:
- id: pyproject-fmt