This repository has been archived by the owner on Aug 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
109 lines (98 loc) · 2.58 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
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
repos:
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
exclude: >
(?x)^(
scripts/gen-docs-index|
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-ast
- id: check-json
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
- id: fix-encoding-pragma
- id: requirements-txt-fixer
- id: trailing-whitespace
exclude: >
(?x)^(
LICENSE.md|
)$
- repo: https://gitlab.com/pycqa/flake8.git
rev: 3.9.2
hooks:
- id: flake8
- repo: https://github.com/detailyang/pre-commit-shell
rev: 1.0.5
hooks:
- id: shell-lint
# See https://github.com/pre-commit/pre-commit/issues/532
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
exclude: >
(?x)^(
claimant/src/fixtures/soc_.*_2018.json|
LICENSE.md|
)$
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.12.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
additional_dependencies:
- repo: https://github.com/hadolint/hadolint
rev: v2.10.0
hooks:
- id: hadolint-docker
- repo: local
hooks:
- id: make-dockerlint
name: redcoolbeans/dockerlint
entry: make
description: Runs make dockerlint-run
language: system
args: ["dockerlint-run"]
files: Dockerfile
pass_filenames: false
- repo: local
hooks:
- id: check-makefile
name: Check Makefile
entry: scripts/check-makefile.py
language: script
files: (Makefile|claimant/Makefile)
- repo: https://github.com/sirosen/check-jsonschema
rev: 0.6.0
hooks:
- id: check-github-workflows
- id: check-jsonschema
name: "Check UI schemas"
language: python
files: ^schemas
args: ["--schemafile", "https://json-schema.org/draft/2020-12/schema"]
- repo: local
hooks:
- id: make-schema-check
name: "Check Claim example"
entry: make
language: system
args: ["schema-check"]
always_run: true
pass_filenames: false
- repo: local
hooks:
- id: check-adrs
name: Check ADRs
entry: scripts/check-adrs.py
language: script
pass_filenames: false