29 lines
654 B
INI
29 lines
654 B
INI
[tox]
|
|
minversion = 1.6
|
|
envlist = pep8,eslint
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
whitelist_externals = /usr/bin/npm
|
|
|
|
[testenv:pep8]
|
|
commands = flake8
|
|
|
|
[testenv:eslint]
|
|
# npm must be installed on the system, for example
|
|
# sudo apt-get install npm
|
|
commands = npm install
|
|
npm run lint
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[flake8]
|
|
# E123, E125 skipped as they are invalid PEP-8.
|
|
|
|
show-source = True
|
|
ignore = E123,E125
|
|
builtins = _
|
|
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
|