Fix pep8 and docs build problems
- fix few pep8 complains - integrated upper-constraints - uncapped Sphinx to use upper-constraints cap - removed deprecated oslosphinx Change-Id: I1abffe16975e5e2c9ca1059dd866d605b9485bf9
This commit is contained in:
parent
90e1aae672
commit
469f9fbebd
@ -2,6 +2,5 @@ pygments
|
||||
demjson
|
||||
doc8
|
||||
jsonschema
|
||||
oslosphinx
|
||||
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
|
||||
Sphinx
|
||||
sphinxcontrib.datatemplates
|
||||
|
@ -31,7 +31,6 @@ extensions = ['sphinx.ext.autodoc',
|
||||
'sphinx.ext.intersphinx',
|
||||
'sphinx.ext.todo',
|
||||
'sphinx.ext.viewcode',
|
||||
'oslosphinx',
|
||||
'sphinxcontrib.datatemplates',
|
||||
]
|
||||
|
||||
|
@ -2,6 +2,5 @@ pygments
|
||||
demjson
|
||||
doc8
|
||||
jsonschema
|
||||
oslosphinx
|
||||
sphinx>=1.1.2,!=1.2.0,!=1.3b1,<1.3
|
||||
Sphinx
|
||||
sphinxcontrib.datatemplates
|
||||
|
@ -167,7 +167,7 @@ this specification.""")
|
||||
outFile.write('-' * (len(event) + 20) + '\n\n')
|
||||
|
||||
names = sorted(desig[event].keys())
|
||||
if len(names) is 0:
|
||||
if len(names) == 0:
|
||||
outFile.write('None')
|
||||
|
||||
outlines = []
|
||||
|
4
tox.ini
4
tox.ini
@ -7,7 +7,8 @@ skipsdist = True
|
||||
basepython=python2.7
|
||||
setenv =
|
||||
VIRTUAL_ENV={envdir}
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
deps = -c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
@ -84,4 +85,3 @@ commands=
|
||||
whitelist_externals =
|
||||
sh
|
||||
bash
|
||||
|
||||
|
@ -182,9 +182,9 @@ with open(args.score_file_name) as filehandle:
|
||||
# the JSON file, denote that it has scored high enough
|
||||
# to be included in the Guideline with an asterisk.
|
||||
if total >= int(json_data['metadata']['scoring']['cutoff_score']):
|
||||
meets_criteria = '*'
|
||||
meets_criteria = '*'
|
||||
else:
|
||||
meets_criteria = ''
|
||||
meets_criteria = ''
|
||||
|
||||
# Now write the total score to a couple of places.
|
||||
# Put it in the tabulated file.
|
||||
|
Loading…
x
Reference in New Issue
Block a user