Have import order follow standard and fix misspelling

Have the import order follow the OpenStack standard:
http://docs.openstack.org/developer/hacking/#import-order-template

Basically the reno imports should be the final section of imports.

Fix a misspelled word.

Change-Id: I3401838398c051a9bdafad5f39d43a6af3de1058
This commit is contained in:
John L. Villalovos
2016-06-28 10:57:38 -07:00
parent 50c6ed36be
commit bcaa1929d0
9 changed files with 27 additions and 28 deletions

View File

@@ -13,12 +13,12 @@
import os
import sys
import yaml
from reno import loader
from reno import scanner
from reno import utils
import yaml
def build_cache_db(reporoot, notesdir, branch, collapse_pre_releases,
versions_to_include, earliest_version):

View File

@@ -13,11 +13,11 @@
import logging
import os.path
from reno import scanner
import six
import yaml
from reno import scanner
LOG = logging.getLogger(__name__)
@@ -105,7 +105,7 @@ class Loader(object):
"""Return the data structure encoded in the note file.
Emit warnings for content that does not look valid in some
way, but return it anway for backwards-compatibility.
way, but return it anyway for backwards-compatibility.
"""
if self._cache:

View File

@@ -12,16 +12,16 @@
import os.path
from reno import defaults
from reno import formatter
from reno import loader
from docutils import nodes
from docutils.parsers import rst
from docutils.parsers.rst import directives
from docutils.statemachine import ViewList
from sphinx.util.nodes import nested_parse_with_titles
from reno import defaults
from reno import formatter
from reno import loader
class ReleaseNotesDirective(rst.Directive):

View File

@@ -14,12 +14,11 @@
import textwrap
from reno import cache
from reno.tests import base
import mock
from oslotest import mockpatch
import mock
from reno import cache
from reno.tests import base
class TestCache(base.TestCase):

View File

@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
from reno import create
from reno.tests import base
import fixtures
import mock
from reno import create
from reno.tests import base
class TestPickFileName(base.TestCase):

View File

@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
import mock
from reno import formatter
from reno import loader
from reno.tests import base
import mock
class TestFormatter(base.TestCase):

View File

@@ -15,14 +15,14 @@
import logging
import textwrap
from reno import loader
from reno.tests import base
import fixtures
import mock
import six
import yaml
from reno import loader
from reno.tests import base
class TestValidate(base.TestCase):

View File

@@ -19,15 +19,15 @@ import re
import subprocess
import textwrap
import fixtures
import mock
from testtools.content import text_content
from reno import create
from reno import scanner
from reno.tests import base
from reno import utils
import fixtures
import mock
from testtools.content import text_content
_SETUP_TEMPLATE = """
import setuptools

View File

@@ -12,12 +12,12 @@
# License for the specific language governing permissions and limitations
# under the License.
from reno.tests import base
from reno import utils
import mock
import six
from reno.tests import base
from reno import utils
class TestGetRandomString(base.TestCase):