-
Notifications
You must be signed in to change notification settings - Fork 11
/
.pre-commit-config.yaml
60 lines (60 loc) · 1.67 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
default_stages: [commit]
default_language_version:
node: system
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: (API.md|.mergify.yml|.projen/|.github|tsconfig.dev.json|.gitignore|LICENSE|.gitattributes|.eslintrc.json)
- id: trailing-whitespace
- id: check-json
exclude: (tsconfig.json|.eslintrc.json|tsconfig.dev.json)
- id: detect-aws-credentials
- id: detect-private-key
- repo: https://github.com/talos-systems/conform
rev: v0.1.0-alpha.26
hooks:
- id: conform
stages:
- commit-msg
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier
exclude: (.mergify.yml|.projen/|.github|tsconfig.dev.json|.gitignore|LICENSE|.gitattributes|.eslintrc.json)
stages:
- commit
- repo: local
hooks:
- id: build-typescript
exclude: .projenrc.ts
name: build-typescript
language: system
entry: sh -c 'npx tsc --noEmit'
files: \.ts$
- repo: local
hooks:
- id: synth
name: synth
language: system
entry: sh -c 'npx cdk synth --quiet --context vpc-id=$VPC_ID'
files: src/.*\.ts$
- repo: local
hooks:
- id: compile-project
exclude: .projenrc.ts
name: compile-project
language: system
entry: sh -c 'npx projen compile'
files: \.ts$
- repo: local
hooks:
- id: test
exclude: .projenrc.ts
name: test
language: system
entry: sh -c 'npx projen test'
files: \.ts$