forked from private-attribution/draft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
68 lines (68 loc) · 1.71 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
repos:
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: 23.12.0
hooks:
- id: black
- repo: local
hooks:
- id: pylint
name: pylint
language: python
entry: pylint
types: [python]
args:
[
"-rn", # Only display messages
]
- id: pytest
name: pytest
language: python
entry: pytest
types: [python]
pass_filenames: false
args: [--cov=sidecar]
- id : pytest-coverage
name: coverage
language: python
entry: coverage report
types: [python]
pass_filenames: false
args: [--fail-under=60] # increase this over time, goal=80
- id: pyre-check
name: pyre-check
entry: pyre check
language: system
types: [python]
pass_filenames: false
- id: npm-lint
name: npm-lint
entry: npm --prefix server run lint
language: system
files: ^server/
types_or: [javascript, jsx, ts, tsx]
pass_filenames: false
- id: npm-build
name: npm-build
entry: npm --prefix server run build
language: system
files: ^server/
types_or: [javascript, jsx, ts, tsx]
pass_filenames: false
- id: prettier
name: prettier
entry: npx --prefix server prettier --config=server/.prettierrc --ignore-path=server/.prettierignore --check server
language: system
files: ^server/
types_or: [javascript, jsx, ts, tsx, json]
- id: jest-tests
name: jest-tests
entry: npm --prefix server run test
language: system
files: ^server/
types_or: [javascript, jsx, ts, tsx]
pass_filenames: false