From 858de30916515cf3f6e9e6839171db533b064e4c Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 2 Mar 2017 16:33:58 +0100 Subject: [PATCH] Enable sphinx warnings With pbr 2.0 and Sphinx 1.5, we need to use warning-is-error for sphinx warnings. Disable the non-local-uri warning, it's raised by our badge in README.rst. Change-Id: I77ff11a3cd0742bc4c1a6e7037644801877f6661 --- doc/source/conf.py | 3 +++ setup.cfg | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 52c0ab9..f95f625 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -95,6 +95,9 @@ pygments_style = 'sphinx' # A list of ignored prefixes for module index sorting. modindex_common_prefix = ['docs-specs.'] +# Do not warn about non-local image URI +suppress_warnings = ['image.nonlocal_uri'] + # -- Options for man page output ---------------------------------------------- man_pages = [] diff --git a/setup.cfg b/setup.cfg index d0d7cb7..dbc9194 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,9 +21,7 @@ classifier = all_files = 1 build-dir = doc/build source-dir = doc/source - -[pbr] -warnerrors = True +warning-is-error = 1 [wheel] universal = 1