-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
50 lines (42 loc) · 1 KB
/
Copy pathtox.ini
File metadata and controls
50 lines (42 loc) · 1 KB
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
[tox]
#envlist = py27,py33,py34,py35
envlist = cov-init, py27, py36, cov-report, flake8
tox_pyenv_fallback=False
[testenv]
usedevelop=True
setenv =
COVERAGE_FILE = .coverage.{envname}
commands = pytest -s -v --cov milk --cov-report= {posargs}
#deps = -r{toxinidir}/test_requirements.txt
deps =
pytest
pytest-mock
mock
pytest-cov
cov-core
flake8
passenv = HOME
[testenv:cov-init]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage erase
[testenv:cov-report]
setenv =
COVERAGE_FILE = .coverage
deps = coverage
commands =
coverage combine
coverage report -m
coverage annotate -d /src/coverage_report
[testenv:flake8]
commands = flake8 {posargs}
[flake8]
show-source = True
# E265 = comment blocks like @{ section, which it can't handle
# E266 = too many leading '#' for block comment
# E731 = do not assign a lambda expression, use a def
# E501 = line too long (82 > 79 characters)
ignore = E265,E731,E501
exclude = .tox,.venv,build,dist,doc,git/ext/