Zuul and tox checks updated.
Change-Id: Ic097711e3f9a2ab8ace9da699a8a102f9fb88ecd
This commit is contained in:
parent
e154bf682d
commit
4cd81aee1d
30
tox.ini
30
tox.ini
|
@ -1,6 +1,6 @@
|
|||
[tox]
|
||||
minversion = 2.3.1
|
||||
envlist = py36,pep8
|
||||
envlist = py38,pep8
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
|
@ -19,38 +19,38 @@ commands =
|
|||
find . -type f -name "*.pyc" -delete
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python2.7
|
||||
basepython = python3.8
|
||||
#commands = /usr/local/bin/flake8 {posargs}
|
||||
commands = flake8 {posargs}
|
||||
|
||||
[testenv:venv]
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands = python setup.py test --coverage --testr-args='{posargs}'
|
||||
commands = python3 setup.py test --coverage --testr-args='{posargs}'
|
||||
|
||||
[testenv:docs]
|
||||
commands =
|
||||
rm -fr doc/build
|
||||
python setup.py build_sphinx
|
||||
python3 setup.py build_sphinx
|
||||
|
||||
[testenv:releasenotes]
|
||||
commands =
|
||||
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
||||
|
||||
[testenv:py35]
|
||||
basepython = python3.5
|
||||
|
||||
[testenv:py36]
|
||||
basepython = python3.6
|
||||
[testenv:py38]
|
||||
basepython = python3.8
|
||||
|
||||
[flake8]
|
||||
# TODO(dmllr): Analyze or fix the warnings blacklisted below
|
||||
# E711 comparison to None should be 'if cond is not None:'
|
||||
# E712 comparison to True should be 'if cond is True:' or 'if cond:'
|
||||
# H404 multi line docstring should start with a summary
|
||||
# H405 multi line docstring summary not separated with an empty line
|
||||
# E711 comparison to None should be 'if cond is not None:'
|
||||
# E712 comparison to True should be 'if cond is True:' or 'if cond:'
|
||||
# H404 multi line docstring should start with a summary
|
||||
# H405 multi line docstring summary not separated with an empty line
|
||||
# E123, E125 skipped as they are invalid PEP-8.
|
||||
show-source = True
|
||||
builtins = _
|
||||
ignore = E711,E712,H404,H405,E123,E125,E901
|
||||
exclude = .venv,.git,.tox,dist,doc,etc,*lib/python*,*egg,build,iotronic_lightningrod/plugins/plugins_examples/,STUFF
|
||||
#ignore = E711,E712,H404,H405,E123,E125,E901,H301
|
||||
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E251,E711,E712,H405,W504,E731,H238,E126,E128,E731,H405,N530,W504,E129,E741,W503,F821,F999,F841,E402,W605
|
||||
|
||||
exclude = .venv,.git,.tox,dist,doc,etc,*lib/python*,*egg,build,iotronic_lightningrod/modules/plugins/plugins_examples/,STUFF
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
- project:
|
||||
templates:
|
||||
- openstack-python38-jobs-no-constraints
|
||||
- check-requirements
|
||||
- publish-to-pypi
|
Loading…
Reference in New Issue