forked from Panopto/python-soap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
55 lines (45 loc) · 1.11 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
# content of: tox.ini , put in same dir as setup.py
[tox]
envlist = cov-init,py27,cov-report,pep8
[testenv]
# Windows symlink support is weak so always copy instead
alwayscopy = True
setenv =
# Set a stable hash seed
PYTHONHASHSEED=0
COVERAGE_FILE = .coverage.{envname}
deps =
-rrequirements.txt
commands =
pipconflictchecker
{envbindir}/python setup.py test --addopts "--junitxml=TEST-{envname}.xml --cov --cov-append --cov-report= {posargs}"
[testenv:cov-init]
setenv =
COVERAGE_FILE = .coverage
commands =
coverage erase
[testenv:cov-report]
setenv =
COVERAGE_FILE = .coverage
commands =
coverage combine
coverage report
coverage xml
[testenv:pep8]
commands = flake8
distribute = false
[flake8]
exclude =
# No need to traverse our git directory
.git,
# There's no value in checking cache directories
__pycache__,
# This contains our built src and documentation
build,
# This contains builds of the package that we don't want to check
dist,
# Exclude the tox environments
.tox,
# Exclude any eggs
.eggs
max-line-length = 125