Enable pep8 tox env
Fix a long line in doc/source/conf.py Add *.egg-info which is created when virtualenv is setup Change-Id: I3fb00e744b2d192870b5d1ea192a6091f7f0a7d8
This commit is contained in:
parent
d97ef15a40
commit
639f653d71
|
@ -1,4 +1,5 @@
|
|||
/doc/build/
|
||||
/openstacki18n.egg-info/
|
||||
|
||||
*.mo
|
||||
|
||||
|
|
|
@ -70,7 +70,8 @@ release = '1.0.0'
|
|||
|
||||
# A few variables have to be set for the log-a-bug feature.
|
||||
# giturl: The location of conf.py on Git. Must be set manually.
|
||||
# gitsha: The SHA checksum of the bug description. Automatically extracted from git log.
|
||||
# gitsha: The SHA checksum of the bug description.
|
||||
# Automatically extracted from git log.
|
||||
# bug_tag: Tag for categorizing the bug. Must be set manually.
|
||||
# These variables are passed to the logabug code via html_context.
|
||||
giturl = u'http://git.openstack.org/cgit/openstack/i18n/tree/doc/source'
|
||||
|
|
|
@ -2,5 +2,7 @@
|
|||
# of appearance. Changing the order has an impact on the overall integration
|
||||
# process, which may cause wedges in the gate later.
|
||||
|
||||
hacking>=0.10.2,<0.11 # Apache-2.0
|
||||
|
||||
sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 # BSD
|
||||
oslosphinx!=3.4.0,>=2.5.0 # Apache-2.0
|
||||
|
|
12
tox.ini
12
tox.ini
|
@ -1,10 +1,10 @@
|
|||
[tox]
|
||||
minversion = 1.6
|
||||
envlist = docs
|
||||
envlist = docs,pep8
|
||||
skipsdist = True
|
||||
|
||||
[testenv]
|
||||
basepython = python2
|
||||
usedevelop = True
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
|
||||
|
@ -12,4 +12,12 @@ deps = -r{toxinidir}/test-requirements.txt
|
|||
commands = {posargs}
|
||||
|
||||
[testenv:docs]
|
||||
basepython = python2
|
||||
commands = sphinx-build -W -b html doc/source doc/build/html
|
||||
|
||||
[testenv:pep8]
|
||||
deps =
|
||||
{[testenv]deps}
|
||||
commands =
|
||||
flake8
|
||||
# sh ./tools/coding-checks.sh --pylint '{posargs}'
|
||||
|
|
Loading…
Reference in New Issue