-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
62 lines (51 loc) · 1.21 KB
/
tox.ini
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
59
60
61
62
[tox]
isolated_build = True
envlist = py36,py37,black,flake8,pylint,bandit,mypy,docs
[flake8]
exclude = .git,__pycache__,docs,build,dist,.tox
show-source = True
extend-ignore = E501 # line length handled by black.
[coverage:run]
branch = True
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self\.debug
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == "__main__":
ignore_errors = False
fail_under = 100
[testenv]
deps =
pytest
pytest-cov
commands = pytest -vv --capture=fd --cov-report term-missing:skip-covered --cov={envsitepackagesdir}/httpserializers tests
[testenv:black]
deps = black
skip_install = true
commands = black --diff --check httpserializers
[testenv:flake8]
deps =
flake8
flake8-bugbear
skip_install = true
commands = flake8 httpserializers tests
[testenv:pylint]
deps =
pylint
jinja2
commands = pylint --disable C0330,too-few-public-methods,no-self-use httpserializers
[testenv:bandit]
deps = bandit
skip_install = true
commands = bandit -r httpserializers
[testenv:mypy]
deps = mypy
skip_install = true
commands = mypy --ignore-missing-imports httpserializers tests
[testenv:docs]
deps =
commands = python -m doctest README.md