forked from reddit/baseplate.py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
52 lines (44 loc) · 1.19 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
[tool:pytest]
python_files = *_tests.py
addopts = -Wignore --cov=baseplate --cov-report term --cov-report html:build/coverage --no-cov-on-fail --pdbcls=IPython.terminal.debugger:Pdb
[tox:tox]
envlist = clean, py36, py37
[testenv]
deps = -rrequirements-test.txt
commands = pytest --cov-append {posargs}
[testenv:clean]
deps = coverage
skip_install = true
commands = coverage erase
[coverage:run]
branch = 1
omit = */baseplate/thrift/*.py
[coverage:report]
exclude_lines =
# re-enable the built-in pragma
pragma: nocover
# trivially empty implementations shouldn't matter
raise NotImplementedError
pass
# module-import stuff should be minimal
if __name__ == .__main__.:
[flake8]
max-line-length = 100
ignore = W503,E128,E203,E226,E501,D100,D101,D102,D103,D104,D105,D106,D107,D202,D203,D213
exclude =
baseplate/thrift/
tests/integration/test_thrift/
build/
.tox/
[mypy]
python_version = 3.6
disallow_incomplete_defs = True
disallow_untyped_decorators = True
disallow_untyped_defs = True
ignore_missing_imports = True
no_implicit_optional = True
warn_redundant_casts = True
warn_unused_ignores = True
html_report = build/mypy
[mypy-baseplate.thrift.*]
ignore_errors = true