forked from TencentBlueKing/bk-bcs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.02 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
files: ^(bcs-ui|bcs-services)/
fail_fast: true
repos:
- repo: https://github.com/timothycrosley/isort
rev: 5.7.0
hooks:
- id: isort
exclude: >
(?x)^(
.*/migrations/.*
| bcs-ui/backend/packages/.*
)$
additional_dependencies: [toml]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
args: [--config=bcs-ui/pyproject.toml]
exclude: >
(?x)^(
.*/migrations/.*
| bcs-ui/backend/packages/.*
)$
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.0
hooks:
- id: flake8
args: [--config=bcs-ui/.flake8]
exclude: >
(?x)^(
.*/migrations/.*
| bcs-ui/backend/packages/.*
)$
- repo: https://github.com/dnephin/pre-commit-golang
rev: v0.4.0
hooks:
- id: go-fmt
files: "^bcs-services/cluster-resources/pkg/"
- id: go-lint
files: "^bcs-services/cluster-resources/pkg/"