X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=tox.ini;h=af61a3580845b1855be4ea6b62fbdbea82abb753;hb=a70a8c4d78bacd7ed4bbbdec0d5c6a45679548b1;hp=4ef6a64291c3095f7b0f89fae5e9a9d4413eda27;hpb=bd499e01b67f2eb3cd9263f5d5d819fb118c5756;p=osm%2FPOL.git diff --git a/tox.ini b/tox.ini index 4ef6a64..af61a35 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,7 @@ # test suite on all supported python versions. To use it, "pip install tox" # and then run "tox" from this directory. [tox] -envlist = py3 +envlist = py3, flake8, pylint toxworkdir={homedir}/.tox [testenv] @@ -34,18 +34,18 @@ commands=python3 -m unittest discover -v install_command = python3 -m pip install -r requirements.txt -U {opts} {packages} deps = -r{toxinidir}/test-requirements.txt +[testenv:pylint] +basepython = python3 +deps = pylint +commands = + pylint -E osm_policy_module + [testenv:flake8] basepython = python3 deps = flake8 commands = flake8 osm_policy_module -[testenv:build] -basepython = python3 -deps = stdeb - setuptools-version-command -commands = python3 setup.py --command-packages=stdeb.command bdist_deb - [flake8] # E123, E125 skipped as they are invalid PEP-8. max-line-length = 120 @@ -54,4 +54,8 @@ ignore = E123,E125,E241 builtins = _ exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build,devops_stages/*,.rst - +[testenv:build] +basepython = python3 +deps = stdeb + setuptools-version-command +commands = python3 setup.py --command-packages=stdeb.command bdist_deb