7da752110a
./doc/source/_exts/candidates.py:20:1: H306 imports not in alphabetical order (jinja2.filesystemloader, jinja2.environment.environment) ./doc/source/_exts/events.py:17:1: H306 imports not in alphabetical order (os, calendar) ./doc/source/_exts/events.py:21:1: H306 imports not in alphabetical order (jinja2.filesystemloader, jinja2.environment.environment) ./openstack_election/check_candidacy.py:62:29: E126 continuation line over-indented for hanging indent ./openstack_election/utils.py:27:1: H306 imports not in alphabetical order (yaml, re) ./openstack_election/cmds/close_election.py:90:9: H232 Python 3.x incompatible octal 755 should be written as 0o755 ./openstack_election/tests/test_utils.py:25:21: E126 continuation line over-indented for hanging indent ./tools/new-election.py:18:31: H301 one import per line ./tools/new-election.py:27:5: H233 Python 3.x incompatible use of print operator ./tools/new-election.py:31:5: H233 Python 3.x incompatible use of print operator ./tools/new-election.py:41:5: H233 Python 3.x incompatible use of print operator Co-Authored-By: Nguyen Hung Phuong <phuongnh@vn.fujitsu.com> Change-Id: Idd9bc1f1f92da1658e6da2af588c575ee0ba2cb0
29 lines
785 B
INI
29 lines
785 B
INI
[tox]
|
|
envlist = docs,linters,py34,py27
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
install_command = pip install -U {opts} {packages}
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
deps = -r{toxinidir}/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
# NOTE: If py34 fails with "db type could not be determined", delete
|
|
# .testrepository and try again. Running py34 before py27 is OK, but not the
|
|
# other way around. See: https://bugs.launchpad.net/testrepository/+bug/1212909
|
|
commands = python setup.py testr --slowest --testr-args="{posargs}"
|
|
|
|
[testenv:linters]
|
|
commands = yamllint configuration.yaml
|
|
flake8
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = python setup.py build_sphinx
|
|
|
|
[flake8]
|
|
exclude=.tox,doc/source/conf.py,rolls/owners.py
|