-
Notifications
You must be signed in to change notification settings - Fork 324
/
.pre-commit-config.yaml
49 lines (48 loc) · 1.3 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: no-commit-to-branch
- id: check-yaml
args: ['--unsafe']
- id: check-toml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: local
hooks:
- id: python-format
name: python-format
types_or: [python]
entry: make format
language: system
pass_filenames: false
- id: python-typecheck
name: python-typecheck
types_or: [python]
entry: make typecheck
language: system
pass_filenames: false
- id: js-prettier
name: js-prettier
types_or: [javascript, jsx, ts, tsx, css, json, markdown]
entry: npm run prettier
language: system
exclude: '^docs/.*'
- id: js-lint
name: js-lint
types_or: [ts, tsx]
entry: npm run lint-fix
language: system
pass_filenames: false
- id: js-typecheck
name: js-typecheck
types_or: [ts, tsx]
entry: npm run typecheck
language: system
pass_filenames: false
- id: python-generate-ts
name: python-generate-ts
types_or: [python]
entry: make typescript-models
language: system
pass_filenames: false