-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
75 lines (64 loc) · 1.91 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
63
64
65
66
67
68
69
70
71
72
73
74
75
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
# Default list of environments that are tested, unless -e or TOXENV are
# specified.
envlist = py35, py36, py37, py38, codestyle, cov
[travis]
# NOTE: remember to update the list of Python versions in .travis.yml
python =
3.5: py35
3.6: py36, traviscodecov
3.7: py37, codestyle
3.8: py38
[testenv]
commands = pytest {posargs} tests/
# Remember to keep synchronized with tests_require in setup.py
deps =
pytest
requests
[testenv:cov]
commands = pytest --cov={envsitepackagesdir}/linear_voluba tests/
deps =
{[testenv]deps}
pytest-cov
[testenv:traviscodecov]
passenv = CI TRAVIS TRAVIS_*
deps =
{[testenv:cov]deps}
codecov
commands =
{[testenv:cov]commands}
codecov
[testenv:codestyle]
# pre-commit needs to clone Git repositories over https
passenv = http_proxy https_proxy no_proxy
commands = pre-commit run --all-files
deps =
pre-commit
[flake8]
ignore =
# E203 (whitespace before ':') has false positive for array slicings
E203,
# these are on the default ignore list
E121, E126, E226, E133, E203, E241,
# We want line-break *before* the operator (new PEP8 style similar to math)
W503,
# Give false positives when a name contains an uppercase acronym
N802, N806
[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.: