diff options
author | Luigi Toscano <ltoscano@redhat.com> | 2017-07-13 18:44:26 +0200 |
---|---|---|
committer | Luigi Toscano <ltoscano@redhat.com> | 2017-07-13 18:51:45 +0200 |
commit | 76f056899c728a47bfa061732c284319ea9ce0c3 (patch) | |
tree | 5e076fc1f37388db500262858c3dbdd0e7e749ee | |
parent | df536ba753c4731a6b494dccdacb1428c941d290 (diff) | |
download | python-saharaclient-76f056899c728a47bfa061732c284319ea9ce0c3.tar.gz |
doc: enable warning-is-error and fix warnings
A small workaround is required for a specific parameter (see the
inline comment).
Change-Id: I1eac60cc8ca89a12dd568f5a12f70fdab9b76b62
-rw-r--r-- | doc/source/conf.py | 2 | ||||
-rw-r--r-- | saharaclient/api/images.py | 6 | ||||
-rw-r--r-- | setup.cfg | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py index 56f4591..a4d68fe 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -142,7 +142,7 @@ html_title = 'Sahara Client' # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". -html_static_path = ['_static'] +# html_static_path = ['_static'] # If not '', a 'Last updated on:' timestamp is inserted at every page bottom, # using the given strftime format. diff --git a/saharaclient/api/images.py b/saharaclient/api/images.py index c10033b..d306400 100644 --- a/saharaclient/api/images.py +++ b/saharaclient/api/images.py @@ -48,9 +48,11 @@ class ImageManager(base.ResourceManager): def update_tags(self, image_id, new_tags): """Update an Image tags. - :param list new_tags: list of tags that will replace currently - assigned tags + :param new_tags: list of tags that will replace currently + assigned tags """ + # Do not add :param list in the docstring above until this is solved: + # https://github.com/sphinx-doc/sphinx/issues/2549 old_image = self.get(image_id) old_tags = frozenset(old_image.tags) @@ -96,6 +96,7 @@ openstack.data_processing.v1 = all_files = 1 build-dir = doc/build source-dir = doc/source +warning-is-error = 1 [wheel] universal = 1 |