-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (58 loc) · 2.07 KB
/
.pre-commit-config.yaml
File metadata and controls
66 lines (58 loc) · 2.07 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
repos:
# lint yaml, line and whitespace
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: requirements-txt-fixer
- id: mixed-line-ending
- id: check-executables-have-shebangs
exclude: fa_services.tcl
- id: check-shebang-scripts-are-executable
# lint the dockerfiles
- repo: https://github.com/hadolint/hadolint
rev: 4e697ba704fd23b2409b947a319c19c3ee54d24f # frozen: v2.14.0
hooks:
- id: hadolint
# prettier
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "f12edd9c7be1c20cfa42420fd0e6df71e42b51ea" # frozen: v4.0.0-alpha.8
hooks:
- id: prettier
types_or: [file, bash, sh, javascript, jsx, ts, tsx]
additional_dependencies:
- prettier@2.5.1
exclude: ^(Dockerfile*)
- repo: https://github.com/codespell-project/codespell.git
rev: "63c8f8312b7559622c0d82815639671ae42132ac" # frozen: v2.4.1
hooks:
- id: codespell
types: [text]
args: [--ignore-words=.dictionary.txt]
exclude: ^(Dockerfile*)
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: 745eface02aef23e168a8afb6b5737818efbea95 # frozen: v0.11.0.1
hooks:
- id: shellcheck
- repo: https://github.com/sirosen/check-jsonschema
rev: 16a6ad2fead09286ee6eb6b0a3fab55655a6c22a # frozen: 0.35.0
hooks:
- id: check-github-actions
- id: check-github-workflows
- repo: https://github.com/doublify/pre-commit-rust
rev: eeee35a89e69d5772bdee97db1a6a898467b686e # frozen: v1.0
hooks:
- id: fmt
- id: cargo-check
# lint python formatting
- repo: https://github.com/psf/black
rev: 05f0a8ce1f71fbb36e1e032d3b518c7b945089a2 # frozen: 25.11.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: "d93590f5be797aabb60e3b09f2f52dddb02f349f" # frozen: 7.3.0
hooks:
- id: flake8
args: ["--extend-ignore=W503,W504,E501"]