forked from smartbgp/yabgp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
53 lines (46 loc) · 1.51 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
# Tox (https://tox.testrun.org/) 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]
# List the environment that will be run by default
minversion = 1.6
envlist = py27,py36,docs,pep8
skipsdist = True
[testenv]
setenv = VIRTUAL_ENV={envdir}
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_ALL=C
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
[testenv:py27]
commands = coverage erase
coverage run run_test.py
coverage report -m
[testenv:py36]
commands = coverage erase
coverage run run_test.py
coverage report -m
[testenv:docs]
deps=
sphinx==1.5.5
sphinx_rtd_theme
sphinxcontrib-httpdomain==1.1.7
-r{toxinidir}/requirements.txt
commands = sphinx-build -W -b html doc/source doc/build
[testenv:pep8]
sitepackages = False
commands =
flake8 {posargs}
[flake8]
# E712 is ignored on purpose, since it is normal to use 'column == true'
# in sqlalchemy.
# H803 skipped on purpose per list discussion.
# E125 is deliberately excluded. See https://github.com/jcrocholl/pep8/issues/126
# The rest of the ignores are TODOs
# New from hacking 0.9: E129, E131, E265, E713, H407, H405, H904
# Stricter in hacking 0.9: F402
# E251 Skipped due to https://github.com/jcrocholl/pep8/issues/301
max-line-length=120
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools