forked from drhagen/parsita
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
66 lines (53 loc) · 1.09 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
[tox]
# Environment changes have to be manually synced with '.travis.yml'.
envlist =
py35
py36
py37
py38
coverage
pep8
[testenv]
passenv = CI TRAVIS TRAVIS_*
setenv =
COVERAGE_FILE = .coverage.{envname}
deps =
-r{toxinidir}/requirements-dev.txt
codecov
commands =
python -m pytest --cov "{envsitepackagesdir}/parsita"
codecov
[testenv:coverage]
# Separate step for combining coverage
skip_install = true
depends = py35,py36,py37,py38
setenv =
deps =
coverage >= 4.5.3
commands =
coverage combine
coverage html
[testenv:pep8]
skip_install = true
setenv =
deps =
flake8 >= 3.7.7
pep8-naming >= 0.8.2
flake8-quotes >= 2.0.0
commands =
flake8
[flake8]
max-line-length = 120
# Allow glob imports, methods whose first argument isn't named `self`, and binary operators before line breaks.
ignore = F403,F405,N805,W503
[coverage:run]
branch = true
[coverage:report]
exclude_lines =
pragma: no cover
raise NotImplementedError
[coverage:paths]
source =
src/
.tox/py*/lib/python*/site-packages/
.tox/py*/Lib/site-packages/