-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
97 lines (97 loc) · 3.03 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
97 lines (97 loc) · 3.03 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
# This file is managed by macpro-mdct-core so if you'd like to change it let's do it there
minimum_pre_commit_version: "3.0.0"
exclude: "seed-section-base-*"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
exclude: '^services/ui-src/public/templates/.*template\.xlsx$'
stages: [pre-commit]
- id: no-commit-to-branch
stages: [pre-commit]
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args:
- --exclude-files
- .*test\.json
- --exclude-files
- ^services/app-api/utils/constants/copyover.ts
- --exclude-files
- ^services/app-api/forms/
- --exclude-files
- ^services/uploads/src/test.json
- --exclude-files
- ^services/ui-src/src/forms/
- --exclude-files
- ^services/ui-src/src/programLists/
- --exclude-files
- ^services/ui-src/src/utils/forms/
- --exclude-files
- ^tests/cypress/cypress.json
- --exclude-files
- ^tests/playwright/data/
- --exclude-files
- ^tests/seeds/fixtures/
stages: [pre-commit]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.272
hooks:
- id: ruff
stages: [pre-commit]
- repo: https://github.com/zricethezav/gitleaks
rev: v8.12.0
hooks:
- id: gitleaks
stages: [pre-commit]
- repo: local
hooks:
- id: oxfmt
name: oxfmt
entry: yarn oxfmt
language: system
pass_filenames: false
stages: [pre-commit]
- id: oxlint
name: oxlint
entry: yarn oxlint --deny-warnings
language: system
pass_filenames: false
stages: [pre-commit]
- id: branch-name-validation
name: branch-name-validation
entry: .github/branchNameValidation.ts
language: system
pass_filenames: false
stages: [pre-commit]
- id: validate-commit-msg
name: validate-commit-msg
entry: .github/validateCommitMessage.ts
language: system
stages: [commit-msg]
- id: typescript-check-cli
name: typescript-check-cli
entry: bash -c "cd cli && yarn tsc --noEmit"
language: system
pass_filenames: false
stages: [pre-commit]
- id: typescript-check-api
name: typescript-check-api
entry: bash -c "cd services/app-api && yarn tsc --noEmit"
language: system
pass_filenames: false
stages: [pre-commit]
- id: typescript-check-ui
name: typescript-check-ui
entry: bash -c "cd services/ui-src && yarn tsc --noEmit"
language: system
pass_filenames: false
stages: [pre-commit]
- id: typescript-check-cdk
name: typescript-check-cdk
entry: bash -c "cd deployment && yarn tsc --noEmit"
language: system
pass_filenames: false
stages: [pre-commit]