-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.cfg
57 lines (50 loc) · 1.41 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
55
56
57
[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,
__pycache__,
config,
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,
per-file-ignores =
# Top level init file improves user experience by short cutting imports,
# this is not used in the package online by calling clients
# F401: imported but unused
snippet/__init__.py:F401
# Don't require docstrings in tests.
# We evaluate the need for them on case by case basis.
test_*.py:D1
tests/**.py:D1
max-line-length = 120
docstring-convention = google
copyright-check = True
select = E,F,W,C,B,H,D
[tool:pytest]
addopts = --cov snippet --cov-report xml:coverage/coverage.xml --cov-report=html
junit_family = xunit2