-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.pre-commit-config.yaml
79 lines (72 loc) · 1.96 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
---
repos:
- repo: local
hooks:
- id: gitlint
name: gitlint
language: python
entry: gitlint
args: [--staged, --msg-filename]
stages: [commit-msg]
- repo: local
hooks:
- id: formatting
name: "isort and black"
exclude: ^(tests/conftest.py)
entry: bash -c '(isort "$@" && black "$@") || true; git add -u' --
language: system
types: [python]
stages: [commit]
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint
language: system
types: [python]
stages: [commit]
- repo: local
hooks:
- id: pydocstyle
name: pydocstyle
exclude: ^(tests/.*|demo/*)
language: system
entry: pydocstyle
stages: [commit]
- repo: local
hooks:
- id: flake8
name: flake8
entry: flake8
language: system
types: [python]
stages: [commit]
- repo: local
hooks:
- id: yamllint
name: yamllint
description: This hook runs yamllint.
entry: yamllint
language: python
types: [file, yaml]
stages: [commit]
- repo: local
hooks:
- id: pytest-check
name: pytest-check-src
entry: python -m pytest tests --cov=dynamicio --cov-report=html --cov-report=xml -v
exclude: ^(.github|.circleci|docs|.flake8|.gitlint|.pylintrc|.docs.Dockerfile|README.md|Makefile|setup.py)
language: system
pass_filenames: false
stages: [commit]
- repo: local
hooks:
- id: pytest-check
name: pytest-check-demo
entry: python -m pytest demo/tests
exclude: ^(.github|.circleci|docs|.flake8|.gitlint|.pylintrc|.docs.Dockerfile|README.md|Makefile|setup.py)
language: system
pass_filenames: false
stages: [commit]