From 2bda94973525894f681ef43f9a7108c60ae24194 Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 20 Apr 2016 11:20:05 -0400 Subject: [PATCH] Final warnings removals for api-ref This removes the final warnings from the api-ref code base, and flips the sphinx switch to enforce warnings as errors. It also adds code to the rest_parameters extension to make it more clear where a problem is when it comes to included parameters. This puts us in a place where we can start doing the file per file look at content. Part of bp:api-ref-in-rst Change-Id: Ic2c99d96d6addcafa00b9f16785c2fe59b1798d3 --- tox.ini | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 8af415dd7..89bcad806 100644 --- a/tox.ini +++ b/tox.ini @@ -86,12 +86,12 @@ commands = {posargs} [testenv:docs] commands = - rm -rf doc/source/api doc/build api-guide/build + rm -rf doc/source/api doc/build api-guide/build api-ref/build python setup.py build_sphinx bash -c '! find doc/ -type f -name *.json | xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python' oslo-config-generator --config-file=etc/nova/nova-config-generator.conf sphinx-build -W -b html api-guide/source api-guide/build/html - sphinx-build -b html api-ref/source api-ref/build/html + sphinx-build -W -b html api-ref/source api-ref/build/html [testenv:api-guide] # This environment is called from CI scripts to test and publish @@ -115,7 +115,8 @@ commands = # ignoring the duplicate stanzas warning. install_command = pip install -U --force-reinstall {opts} {packages} commands = - sphinx-build -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html + rm -rf api-ref/build + sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html [testenv:bandit] commands = bandit -c bandit.yaml -r nova -n 5 -ll