
We used sqlalchemy.core for execute query for orm. The configuration of db is based on monasca-api. The default mode is mysql connection so we can use old configuration. Change-Id: Iebb4d6dfca6d43298ced407178e7f9673a83a7ca
44 lines
1.1 KiB
INI
44 lines
1.1 KiB
INI
[tox]
|
|
envlist = {py27,pypy}-{mysql,postgres},pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages} --pre
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
MySQL-python
|
|
commands = nosetests
|
|
|
|
[testenv:py27-postgres]
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
postgres: psycopg2
|
|
|
|
[testenv:pypy-postgres]
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
postgres: psycopg2
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[tox:jenkins]
|
|
downloadcache = ~/cache/pip
|
|
|
|
[flake8]
|
|
max-line-length = 120
|
|
# TODO: ignored checks should be enabled in the future
|
|
# H201 no 'except:' at least use 'except Exception:'
|
|
# H302 import only modules
|
|
# H305 imports not grouped correctly
|
|
# H307 like imports should be grouped together
|
|
# H405 multi line docstring summary not separated with an empty line
|
|
# H904 Wrap long lines in parentheses instead of a backslash
|
|
ignore = F821,H201,H302,H305,H307,H405,H904
|
|
exclude=.venv,.git,.tox,dist,*openstack/common*,*egg,build
|