-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
49 lines (44 loc) · 1.54 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
49 lines (44 loc) · 1.54 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
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.30.1
hooks:
- id: gitleaks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: local
hooks:
- id: ruff-check
name: "ruff check --fix"
entry: make lint-fix
pass_filenames: false
language: system
stages: [pre-commit]
- id: ruff-format
name: "ruff format"
entry: make format
pass_filenames: false
language: system
stages: [pre-commit]
- id: backend-type-check
name: "type check (ty)"
entry: make type-check
pass_filenames: false
language: system
stages: [pre-commit]
- id: forbid-local-paths
name: "forbid local filesystem paths / personal handles"
entry: "/Users/|arturveres"
language: pygrep
types: [text]
exclude: '^\.pre-commit-config\.yaml$'
- id: forbid-plan-labels
name: "forbid internal plan-step labels"
entry: '(?<![A-Za-z0-9])(SPEC|SURF|DISP|KEY|FILT|BULK|NEST|NAME|THINK|VOICE|THEME|WELL|PAGE|CARD|REST|I18N|CUST|TOOL|PAI|AUTHZ|CONF|AGH|OAS|WCH|HYG|ADOPT|ANNO|ASYNC|ERR|DUP|PROTO|SEC|VER|GATE|STATE|SESS|CTX|AUDIT|HITL|CODE|STEP|SHARE|SKILL|CAP|MOUNT|SAN|PF|PROV|SCH|LIFE|SUB|CI|DOC|EX)-\d|(?<![A-Za-z0-9])(Phase|Wave)\s\d'
language: pygrep
types: [text]
exclude: '^\.pre-commit-config\.yaml$'