forked from arkutils/Purlovia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
48 lines (37 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
39
40
41
42
43
44
45
46
47
exclude: '^(\.|_|output/?|livedata/?|tmp/?|logs/?|interactive/?).*$'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v3.3.0'
hooks:
- id: check-yaml
- id: check-merge-conflict
- repo: https://gitlab.com/pycqa/flake8
rev: '3.8.4'
hooks:
- id: flake8
exclude: '^(\.|_|output/?|livedata/?|tmp/?|logs/?|processing/?).*$'
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.790'
hooks:
- id: mypy
additional_dependencies:
- 'pydantic~=1.7.0'
- repo: https://github.com/pre-commit/mirrors-yapf
rev: 'v0.30.0'
hooks:
- id: yapf
args: ['--diff']
# 'isort' checking has issues...
# It runs from within its own virtualenv so it cannot properly
# detect 3rd-party libraries, which messes up ordering.
# seed-isort-config tries to solve this, but requires updating
# isort's config file each run, and
# - repo: https://github.com/asottile/seed-isort-config
# rev: v2.1.1
# hooks:
# - id: seed-isort-config
# - repo: https://github.com/timothycrosley/isort
# rev: '4.3.21'
# hooks:
# - id: isort
# args: ['--check-only','--recursive']