8c96cfd08c
Some of the available checks are disabled by default, like: [H106] Don’t put vim configuration in source files [H203] Use assertIs(Not)None to check for None Change-Id: I1e2612a92014b17d9f3158ec868f07e734263f13
45 lines
1.2 KiB
INI
45 lines
1.2 KiB
INI
[tox]
|
||
minversion = 2.0
|
||
envlist = py35,py27,pypy,pep8
|
||
|
||
[testenv]
|
||
setenv =
|
||
VIRTUAL_ENV={envdir}
|
||
BRANCH_NAME=master
|
||
CLIENT_NAME=oslo.privsep
|
||
install_command = {toxinidir}/tools/tox_install.sh {env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
||
whitelist_externals =
|
||
/bin/sh
|
||
deps = -r{toxinidir}/test-requirements.txt
|
||
commands = python setup.py testr --slowest --testr-args='{posargs}'
|
||
|
||
[testenv:pep8]
|
||
commands = flake8
|
||
|
||
[testenv:venv]
|
||
commands = {posargs}
|
||
|
||
[testenv:docs]
|
||
commands = python setup.py build_sphinx
|
||
|
||
[testenv:cover]
|
||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||
|
||
[flake8]
|
||
# E123, E125 skipped as they are invalid PEP-8.
|
||
# [H106] Don’t put vim configuration in source files
|
||
# [H203] Use assertIs(Not)None to check for None
|
||
|
||
show-source = True
|
||
ignore = E123,E125
|
||
builtins = _
|
||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|
||
enable-extensions = H106,H203
|
||
|
||
[hacking]
|
||
import_exceptions =
|
||
oslo_privsep._i18n
|
||
|
||
[testenv:releasenotes]
|
||
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|