solar/tox.ini
Andreas Jaeger a4c49fab02 Remove openstack-doc-tools
openstack-doc-test has been removed from openstack-doc-tools in release
1.0.0. Remove it's usage from this project.

Also, remove doc-test.conf file, it was used by openstack-doc-tools.

Remove checkniceness and checksyntax targets, they are unused and not
needed. Merge doc8 check into pep8 and doc environments (note that
OpenStack CI does not use doc environment, so add it to pep8 as well) as
is custom for lint like jobs. Fix requirements to follow best practices.

Add doc8 to test-requirements to document its usage properly, add sphinx
there as well.

Change-Id: I97b9df8272c4f425ec516dfb84c29d2263c316f8
2016-08-23 19:14:30 +02:00

63 lines
1.2 KiB
INI

[tox]
minversion = 2.0
skipsdist = True
envlist = pep8,py27
[testenv]
usedevelop = True
deps = -r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
passenv = SOLAR_DB
[testenv:py27]
commands = ostestr
[testenv:pep8]
basepython=python2
usedevelop = False
commands =
flake8 {posargs:solar}
doc8 doc
[testenv:docs]
basepython=python2
whitelist_externals = /bin/rm
commands =
/bin/rm -rf doc/build
python setup.py build_sphinx
doc8 doc
[doc8]
# Settings for doc8:
# Ignore target directories
ignore-path = doc/build*
# File extensions to use
extensions = .rst,.txt
# Maximal line length should be 79 but we have some overlong lines.
# Let's not get far more in.
max-line-length = 80
# Disable some doc8 checks:
# D000: Check RST validity (cannot handle lineos directive)
ignore = D000
[testenv:venv]
commands = {posargs:}
[testenv:cover]
commands =
coverage erase
python setup.py testr --coverage \
--testr-args='--concurrency=1 {posargs}'
[testenv:devenv]
envdir = devenv
usedevelop = True
[flake8]
ignore = H101,H236,E731,H405,H104
exclude = .venv,.git,.tox,dist,doc,*lib/python*,*egg,build,tools,docs,solar/ansible_library
show-pep8 = True
show-source = True
count = True