summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 34cedf79f9d3038ed6474e386674100e3738df37 (plain)
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
[tox]
envlist = py27,py27dj18,pep8
minversion = 2.3.1
skipsdist = True

[testenv]
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
         BRANCH_NAME=master
         CLIENT_NAME=iotronic-ui
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
deps = -r{toxinidir}/requirements.txt
       -r{toxinidir}/test-requirements.txt
commands = {}
whitelist_externals = flake8

[testenv:pep8]
basepython = python2.7
# commands = flake8 {posargs}
commands =

[testenv:venv]
commands = {posargs}

[testenv:py27]
basepython = python2.7
commands =

[testenv:py27dj18]
basepython = python2.7
commands =
    pip install django>=1.8,<2.0

[flake8]
show-source = True
builtins = _
ignore = E711,E712,H404,H405,E123,E125,E901,H301,H701,E226
exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules
max-complexity = 20