-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
98 lines (85 loc) · 2.75 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-merge-conflict
name: Check for merge conflict strings
- id: end-of-file-fixer
name: Fix missing newline at the end of files
- id: check-shebang-scripts-are-executable
name: Check shell scripts are executable
files: \.(sh)$
- id: check-yaml
name: Check pipelines configuration
files: ^(.github)
- repo: https://github.com/pycqa/flake8
rev: "7ef0350a439c93166bc8ba89fcc3de6a9a664e6c" # release 6.1.0
hooks:
- id: flake8
- repo: local
hooks:
- id: lint-updatePrescriptionStatus
name: Lint updatePrescriptionStatus
entry: npm
args: ["run", "--prefix=packages/updatePrescriptionStatus", "lint"]
language: system
files: ^packages\/updatePrescriptionStatus
types_or: [ts, tsx, javascript, jsx, json]
pass_filenames: false
- id: lint-gsul
name: Lint gsul
entry: npm
args: ["run", "--prefix=packages/gsul", "lint"]
language: system
files: ^packages\/gsul
types_or: [ts, tsx, javascript, jsx, json]
pass_filenames: false
- id: lint-sandbox
name: Lint sandbox
entry: npm
args: ["run", "--prefix=packages/sandbox", "lint"]
language: system
files: ^packages\/sandbox
types_or: [ts, tsx, javascript, jsx, json]
pass_filenames: false
- id: lint-statusLambda
name: Lint statusLambda
entry: npm
args: ["run", "--prefix=packages/statusLambda", "lint"]
language: system
files: ^packages\/statusLambda
types_or: [ts, tsx, javascript, jsx, json]
pass_filenames: false
- id: lint-cpsuLambda
name: Lint cpsuLambda
entry: npm
args: ["run", "--prefix=packages/cpsuLambda", "lint"]
language: system
files: ^packages\/cpsuLambda
types_or: [ts, tsx, javascript, jsx, json]
pass_filenames: false
- id: lint-samtemplates
name: Lint sam templates
entry: make
args: ["lint-samtemplates"]
language: system
files: ^SAMtemplates
pass_filenames: false
- id: lint-githubactions
name: Lint github actions
entry: make
args: ["lint-githubactions"]
language: system
files: ^.github
types_or: [yaml]
pass_filenames: false
- id: lint-githubaction-scripts
name: Lint github action scripts
entry: make
args: ["lint-githubaction-scripts"]
language: system
files: ^.github/scripts
types_or: [sh, shell]
pass_filenames: false
fail_fast: true
default_stages: [commit]