-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
41 lines (41 loc) · 982 Bytes
/
.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
repos:
- repo: local
hooks:
- id: black
name: black
entry: python3 -m black . -l79
language: system
stages: [commit]
types: [python]
- repo: local
hooks:
- id: pydocstyle
name: pydocstyle
entry: pydocstyle
language: system
stages: [commit]
- repo: local
hooks:
- id: pycodestyle
name: pycodestyle
entry: pycodestyle
language: system
stages: [commit]
types: [python]
- repo: local
hooks:
- id: pytest
name: pytest
language: system
entry: python3 -m pytest --cov=tests --cov-report html:cov_html
always_run: true
pass_filenames: false
stages: [commit]
- repo: local
hooks:
- id: requirements
name: requirements
entry: bash -c 'python3 -m pip freeze > requirements.txt; git add requirements.txt'
language: system
pass_filenames: false
stages: [commit]