-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
53 lines (53 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
50
51
52
53
repos:
- repo: local
hooks:
- id: pylint
name: run pylint
entry: pylint --rcfile=setup.cfg
args: ["--disable=bad-continuation"]
language: system
files: ".*.py"
pass_filenames: true
- id: pyroma
name: check setup.py
entry: pyroma .
language: system
files: "setup.py"
pass_filenames: true
- id: mypy
name: Check typing
entry: mypy
args: ["--ignore-missing-imports", "--strict"]
language: system
files: ".*.py"
pass_filenames: true
- id: isort
name: Sort imports
entry: isort
language: system
files: ".*.py"
pass_filenames: true
- id: black
name: Format
entry: black
language: system
files: ".*.py"
pass_filenames: true
- id: pytest
name: unittest
entry: pytest
args:
[
"-rf",
"--cov=transformations_cleaner",
"--cov-report",
"xml:.cov_report/coverage.xml",
"--cov-report",
"term",
"--cov-report",
"term-missing",
"--cov=transformations_cleaner",
]
language: system
files: ".*.py"
pass_filenames: false