-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
36 lines (29 loc) · 945 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
36
# 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{35,36,py3},pep8
[testenv]
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands =
nosetests {posargs} -a '!db'
[testenv:pep8]
whitelist_externals=flake8
commands =
flake8 --exclude a10_saltstack/helpers,.tox,.git,__pycache__
[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 = H404,H405
show-source = true
builtins = _
exclude = .venv,.git,.tox
max-line-length = 100
[testenv:coverage]
whitelist_externals = find
deps = coverage
{[testenv]deps}