-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.18 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
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.2.3
hooks:
- id: check-merge-conflict
- id: debug-statements
- id: check-json
- id: double-quote-string-fixer
- id: trailing-whitespace
files: (Dockerfile|Jenkinsfile|rc|\.(cfg|css|csv|feature|gitignore|html|inc|ini|info|install|java|js|json|md|module|php|pp|properties|py|sh|txt|xml|ya?ml))$
args:
- --no-markdown-linebreak-ext
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.3
hooks:
- id: autopep8
- repo: local
hooks:
- id: pylint
name: pylint
entry: python -m pylint.__main__
language: system
types: [python]
args:
- --rcfile=setup.cfg
- id: tests
name: run tests
entry: python -m coverage run -m pytest
language: system
types: [python]
pass_filenames: false
- id: coverage
name: check coverage
entry: python -m coverage html --fail-under=95
language: system
types: [python]
pass_filenames: false