forked from openstack-archive/syntribos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
43 lines (37 loc) · 1.09 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
[tox]
envlist=pep8,py27,py37
skipsdist = True
[testenv]
usedevelop = True
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
setenv=VIRTUAL_ENV={envdir}
deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
tbump==6.2.0
commands =
coverage erase
python setup.py testr --coverage --slowest --testr-args='{posargs}'
coverage report -m
[testenv:docs]
basepython = python3
commands =
rm -rf doc/html doc/build
rm -rf doc/source/apidoc doc/source/api
python setup.py build_sphinx
whitelist_externals =
rm
[testenv:pep8]
basepython = python3
commands=flake8 {posargs} syntribos
flake8 {posargs} tests
{[testenv:pylint]commands}
[testenv:venv]
basepython = python3
commands = {posargs}
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,H303,F403,H104,H302,W504,H306
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:pylint]
commands=pylint --rcfile=pylintrc syntribos