-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
59 lines (53 loc) · 1.41 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
# See http://pre-commit.com for more information
# See http://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.8
repos:
- repo: https://github.com/asottile/reorder_python_imports
rev: v1.9.0
hooks:
- id: reorder-python-imports
args: ['--py37-plus']
- repo: https://github.com/ambv/black
rev: 19.10b0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-yaml
- id: check-json
- id: debug-statements
- id: requirements-txt-fixer
- repo: https://github.com/Lucas-C/pre-commit-hooks-safety
rev: v1.1.0
hooks:
# Analyze your Python requirements for known security vulnerabilities
- id: python-safety-dependencies-check
- repo: local
hooks:
- id: mypy
name: typecheck files
entry: python -m mypy --config-file setup.cfg
language: system
types: [python]
exclude: >
(?x)^(
((tests|docs)/.+|setup.py)
)$
- repo: local
hooks:
- id: lint
name: lint files
entry: make lint
language: system
types: [python]
- repo: local
hooks:
- id: unittests
name: unittests
entry: bash -c "python -m pytest tests/"
language: system
types: [python]
pass_filenames: false