diff options
author | John L. Villalovos <openstack.org@sodarock.com> | 2018-04-10 17:29:33 -0700 |
---|---|---|
committer | John L. Villalovos <openstack.org@sodarock.com> | 2018-04-10 17:34:04 -0700 |
commit | 6b91ba21df3f60e8362ef86b90de93e73e317b20 (patch) | |
tree | 0a754eca076fa0334f0eb10fdd9c6b5c714c3ccb /api-ref | |
parent | ca91d4d871bae437da2c6173e7a0aad5c3b44532 (diff) | |
download | ironic-6b91ba21df3f60e8362ef86b90de93e73e317b20.tar.gz |
Resolve pep8 E402 errors and no longer ignore E402
Fix the pep8 E402 (Module level import not at top of file) errors.
For the Alembic files move the definitions of 'revision' and
'down_revision' below the imports. This is now done in Alembic [1]
For other files fix as needed by moving the imports or lines before
the imports.
In a few cases add a "# noqa E402" to whitelist the issue.
[1] https://bitbucket.org/zzzeek/alembic/commits/dc2aae0374b76ccab8494be6e103d84089bc449b
Change-Id: I48c96d5da0cb747b3ca3fceea9b4ffa85a9ebe22
Diffstat (limited to 'api-ref')
-rw-r--r-- | api-ref/source/conf.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/api-ref/source/conf.py b/api-ref/source/conf.py index befe4a869..1c9af11e9 100644 --- a/api-ref/source/conf.py +++ b/api-ref/source/conf.py @@ -30,6 +30,11 @@ import sys import openstackdocstheme +# The version info for the project you're documenting, acts as replacement for +# |version| and |release|, also used in various other places throughout the +# built documents. +from ironic.version import version_info + html_theme = 'openstackdocs' html_theme_path = [openstackdocstheme.get_html_theme_path()] html_theme_options = { @@ -66,11 +71,6 @@ master_doc = 'index' project = u'Ironic API Reference' copyright = u'OpenStack Foundation' -# The version info for the project you're documenting, acts as replacement for -# |version| and |release|, also used in various other places throughout the -# built documents. -# -from ironic.version import version_info # The full version, including alpha/beta/rc tags. release = version_info.release_string() # The short X.Y version. |