-
Notifications
You must be signed in to change notification settings - Fork 61
/
tox.ini
35 lines (30 loc) · 961 Bytes
/
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
# Tox (http://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]
envlist = py{27,py,34,35,36,py3},pep8
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONHASHSEED=42
VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py test -q {posargs}
[testenv:pep8]
basepython = python3.6
commands = flake8
# Environment to test pep8 for Openstack py27 support
[testenv:ospep8]
basepython = python2.7
commands = flake8
[flake8]
#ignore = E122,E125,E126,E128,E129,E251,E265,E713,F402,F811,F812,H104,H237,H302,H304,H305,H307,H401,H402,H404,H405,H904
ignore = H301
show-source = true
exclude = .venv,.git,.tox
max-line-length = 119