-
Notifications
You must be signed in to change notification settings - Fork 4
/
.pre-commit-config.yaml
83 lines (79 loc) · 1.84 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-docstring-first
- id: debug-statements
- id: check-case-conflict
- id: mixed-line-ending
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: pretty-format-json
args:
- --autofix
- --indent=4
- --no-sort-keys
- id: requirements-txt-fixer
verbose: true
- id: no-commit-to-branch
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
additional_dependencies: ['click==8.0.4']
- repo: https://github.com/pycqa/pylint
rev: v2.15.10
hooks:
- id: pylint
name: pylint
description: Run pylint in the local virtualenv
entry: pylint "setup.py" "src/" "tests/"
language: system
args:
[
"-rn", # Only display messages
"--rcfile=.pylintrc", # Link to config file
]
additional_dependencies: ['astroid==2.13.2']
language: python
pass_filenames: false
always_run: true
verbose: true
- repo: local
hooks:
- id: unit-tests
name: unit-tests
description: Run pytest in the local virtualenv
entry: >
pytest
tests/unit
--cov src
--cov-report term-missing
--cov-fail-under 97
--random-order-bucket parent
-vv
language: system
pass_filenames: false
always_run: true
- repo: local
hooks:
- id: integ-tests
name: integ-tests
description: Run pytest in the local virtualenv
entry: >
pytest
tests/integ
--random-order-bucket parent
-vv
language: system
pass_filenames: false
always_run: true