-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.pre-commit-config.yaml
53 lines (53 loc) · 1.43 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
repos:
- repo: local
hooks:
- id: extract-openapi
name: extract-openapi
entry: pipenv run extract-openapi
language: system
pass_filenames: false
- repo: local
hooks:
- id: generate-frontend-api-client
name: generate-frontend-api-client
entry: bash -c 'cd frontend && npm run codegen:v2:file'
language: system
pass_filenames: false
- repo: local
hooks:
- id: eslint
name: eslint
entry: bash -c "cd frontend && npx eslint --fix src"
language: system
- repo: local
hooks:
- id: prettier
name: prettier
entry: bash -c "cd frontend && npx prettier src --write"
language: system
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
- id: isort
args: [ "--profile=black" ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-yaml
exclude: deployments/kubernetes/charts
- id: end-of-file-fixer
exclude: 'openapi.json|frontend/src/openapi/v2/'
- id: trailing-whitespace
exclude: 'openapi.json|frontend/src/openapi/v2/'
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8