-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (50 loc) · 1.26 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
repos:
- repo: local
hooks:
- id: autoflake
name: autoflake
stages: [commit]
language: system
entry: autoflake
args:
- '--in-place'
- '--remove-all-unused-imports'
- '--remove-unused-variables'
- "--ignore-init-module-imports"
types: [python]
- id: isort
name: isort
stages: [commit]
language: system
entry: isort
args:
- "--line-width"
- "88"
- "--multi-line"
- "3"
- "--trailing-comma"
- "--use-parentheses"
types: [python]
- id: black
name: black
stages: [commit]
language: system
entry: black
types: [python]
- id: pylint
name: pylint
stages: [commit]
language: system
entry: python utils/generate_pylint_badge.py
- id: pytest
name: pytest
stages: [commit]
language: system
entry: pytest
args: [".", "-x", "-Wignore", "--ignore=integration_tests/run_api_tests.py"]
types: [python]
- id: coverage
name: coverage
stages: [commit]
language: system
entry: bash utils/generate_coverage_badge.sh