forked from WISDEM/WOMBAT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
65 lines (58 loc) · 1.59 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
repos:
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort
stages: [commit]
- repo: https://github.com/psf/black
rev: 22.1.0
hooks:
- id: black
name: black
stages: [commit]
language_version: python3.7
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.931' # Use the sha / tag you want to point at
hooks:
- id: mypy
entry: mypy --install-types --non-interactive
exclude: (^docs/|^tests/)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-executables-have-shebangs
- id: check-json
- id: check-yaml
- id: check-merge-conflict
- id: check-symlinks
- id: mixed-line-ending
- id: pretty-format-json
args: [--autofix]
- repo: https://github.com/pycqa/flake8
rev: '4.0.1'
hooks:
- id: flake8
exclude: ^tests/
- repo: https://github.com/pre-commit/mirrors-pylint
rev: v3.0.0a4
hooks:
- id: pylint
exclude: (^tests/|^docs/)
# - repo: local
# hooks:
# - id: pytest
# name: pytest
# stages: [commit]
# entry: pytest --tb=line --deselect=setup.py tests/
# language: system
# types: [python]
# - id: pytest-cov
# name: pytest-cov
# stages: [commit]
# language: system
# entry: pytest --cov=wombat --tb=no --ignore=*setup.py --cov-fail-under=80
# types: [python]
# pass_filenames: false