mirror of
https://opendev.org/x/pyghmi
synced 2025-01-15 12:17:44 +00:00
c0691104fb
Files in bin/ don't have a .py extension, and so don't get picked up by flake8. Add them to the flake8 command to have them checked. Also fix an existing error in bin/pyghmicons. Change-Id: I4db9b8c4e13c7c7f652acaa12add125f0e0458cd
33 lines
647 B
INI
33 lines
647 B
INI
[tox]
|
|
envlist = py26,py27,py33,pep8
|
|
|
|
[testenv]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
LANG=en_US.UTF-8
|
|
LANGUAGE=en_US:en
|
|
LC_ALL=C
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
python setup.py testr --slowest --testr-args='{posargs}'
|
|
|
|
[tox:jenkins]
|
|
sitepackages = True
|
|
downloadcache = ~/cache/pip
|
|
|
|
[testenv:pep8]
|
|
whitelist_externals = bash
|
|
commands = bash -c 'flake8 pyghmi bin/*'
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
python setup.py testr --coverage
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[flake8]
|
|
exclude = .venv,.tox,dist,doc,*.egg,build
|
|
show-source = true
|