-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
58 lines (58 loc) · 1.43 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
---
language_version: python3.7
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: trailing-whitespace
- id: check-merge-conflict
- id: end-of-file-fixer
- id: fix-encoding-pragma
args:
- --remove
- id: flake8
- id: mixed-line-ending
args:
- --fix=lf
- id: no-commit-to-branch
args:
- --branch
- master
- id: trailing-whitespace
args:
- --markdown-linebreak-ext=md
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.1
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.20
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.710
hooks:
- id: mypy
files: ".*py$"
exclude: "(^test_|docs/.*|setup*)"
args:
- --python-version
- "3.7"
- --platform
- linux
- --show-column-numbers
- --follow-imports
- normal
- --ignore-missing-imports
- --disallow-untyped-calls
- --warn-return-any
- --strict-optional
- --warn-no-return
- --warn-redundant-casts
- --warn-unused-ignores
- --cache-dir
- "/dev/null"