From 667ad456154a4a57fe0a26edbcf157aa3254fe2d Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Sun, 11 Jun 2017 18:17:51 +0700 Subject: [PATCH] Remove pbr warnerrors in favor of sphinx check This change removes the now unused "warnerrors" setting, which is replaced by "warning-is-error" in sphinx releases >= 1.5 [1]. [1] http://lists.openstack.org/pipermail/openstack-dev/ 2017-March/113085.html Change-Id: I9bf18ff72f36dfd3496b9672604e8bb98999b133 --- doc/source/conf.py | 6 ++++++ ironic_python_agent/hardware.py | 2 +- setup.cfg | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index df8dd0c6c..e78556f46 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -56,6 +56,12 @@ add_module_names = True # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' +# Ignore the following warning: WARNING: while setting up extension +# wsmeext.sphinxext: directive 'autoattribute' is already registered, +# it will be overridden. +suppress_warnings = ['app.add_directive'] + + # -- Options for HTML output -------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with diff --git a/ironic_python_agent/hardware.py b/ironic_python_agent/hardware.py index 1d8afbae6..69b47375d 100644 --- a/ironic_python_agent/hardware.py +++ b/ironic_python_agent/hardware.py @@ -775,7 +775,7 @@ class GenericHardwareManager(HardwareManager): :param node: Ironic node object :param ports: list of Ironic port objects - :raises BlockDeviceEraseError when there's an error erasing the + :raises BlockDeviceEraseError: when there's an error erasing the block device """ block_devices = self.list_block_devices() diff --git a/setup.cfg b/setup.cfg index 7c41fc9e6..e8d9f7a8f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -44,12 +44,12 @@ ironic_python_agent.inspector.collectors = [pbr] autodoc_index_modules = True -warnerrors = True [build_sphinx] all_files = 1 build-dir = doc/build source-dir = doc/source +warning-is-error = 1 [egg_info] tag_build =