-
Notifications
You must be signed in to change notification settings - Fork 30
/
setup.cfg
54 lines (48 loc) · 1.29 KB
/
setup.cfg
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
[metadata]
license_file = LICENSE
[mypy]
# flake8-mypy expects the two following for sensible formatting
show_column_numbers = True
show_error_context = False
# do not follow imports (except for ones found in typeshed)
follow_imports = skip
# since we're ignoring imports, writing .mypy_cache doesn't make any sense
cache_dir = /dev/null
ignore_missing_imports = True
disallow_untyped_calls = True
warn_return_any = True
strict_optional = True
warn_no_return = True
warn_redundant_casts = True
warn_unused_ignores = True
disallow_untyped_defs = True
check_untyped_defs = True
[flake8]
exclude =
.git,
.tox,
.venv,
__pycache__,
docs,
news,
dist
ignore =
# H301: one import per line
H301,
# H306: imports not in alphabetical order
H306,
# W503: line break before binary operator (this is no longer PEP8 compliant)
W503,
# E203: whitespace before ':' (this is not PEP8 compliant)
E203,
per-file-ignores =
# Package level init files improve user experience by short cutting imports.
# F401: imported but unused
__init__.py:F401
# Don't require docstrings in tests.
# We evaluate the need for them on case by case basis.
tests/*.py:D1
max-line-length = 120
docstring-convention = google
copyright-check = True
select = E,F,W,C,B,H,D