d55b4c51e5
Now the pylint env is enabled in tox.ini. Also .gitignore and .pylintrc are available part of the repo. Change-Id: I81078bd95c6aaf8dee2a8d36f0d782a457bd4b94
40 lines
681 B
INI
40 lines
681 B
INI
[tox]
|
|
envlist = py27,pep8,pylint
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
deps =
|
|
pytest
|
|
coverage
|
|
flake8
|
|
pytest-cov
|
|
pytest-xdist
|
|
pymysql
|
|
falcon>=0.2.0
|
|
keystonemiddleware
|
|
elasticsearch
|
|
jsonschema
|
|
mock
|
|
pylint
|
|
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
|
|
commands =
|
|
py.test -v --cov-report term-missing --cov freezer_api
|
|
|
|
[pytest]
|
|
python_files = test_*.py
|
|
norecursedirs = .tox .venv specs
|
|
|
|
[testenv:pylint]
|
|
commands = pylint --rcfile .pylintrc freezer_api
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 freezer_api
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude = .venv,.tox,dist,doc,test,*egg,tests,specs,build
|