Fix first/third party import sorting 59/5659/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 28 Jul 2017 01:42:33 +0000 (21:42 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 28 Jul 2017 01:45:52 +0000 (21:45 -0400)
Change-Id: I8e3a28d931e5c1283f44c9b47c261662b7072470
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.coafile
lftools/cli/__init__.py
lftools/cli/jenkins/__init__.py
lftools/cli/nexus.py
lftools/nexus/cmd.py
lftools/openstack/cmd.py

index e112839..3b8ea51 100644 (file)
--- a/.coafile
+++ b/.coafile
@@ -18,6 +18,8 @@ bears = BanditBear,
     PyFlakesBear,
     PyImportSortBear
 files = lftools/**/*.py
+known_first_party_imports = lftools
+known_third_party_imports = pytest, six
 pydocstyle_ignore = D203, D213, D301
 max_line_length = 120
 
index 0623855..823bd8d 100644 (file)
@@ -13,6 +13,7 @@ __author__ = 'Thanh Ha'
 
 
 import click
+
 from lftools.cli.deploy import deploy
 from lftools.cli.jenkins import jenkins_cli
 from lftools.cli.nexus import nexus
index 5b62b71..5487b41 100644 (file)
@@ -14,12 +14,12 @@ __author__ = 'Trevor Bramwell'
 
 import click
 import jenkins as jenkins_python  # Don't confuse this with the function ...
+from six.moves.urllib.error import HTTPError
+
 from lftools.cli.jenkins.builds import builds
 from lftools.cli.jenkins.nodes import nodes
 from lftools.cli.jenkins.plugins import plugins_init
 
-from six.moves.urllib.error import HTTPError
-
 
 @click.group()
 @click.option('-s', '--server', type=str, required=True, envvar='JENKINS_URL')
index 4ebd9cc..d8f8f12 100644 (file)
@@ -9,6 +9,7 @@
 ##############################################################################
 """CLI entry point for nexus commands."""
 import click
+
 from lftools.nexus import cmd as nexuscmd
 
 
index 6583f31..34e56d0 100644 (file)
 """Contains functions for various Nexus tasks."""
 import sys
 
-from lftools.nexus import Nexus
 import yaml
 
+from lftools.nexus import Nexus
+
 
 def reorder_staged_repos(settings_file):
     """Reorder staging repositories in Nexus.
index 0c8c8ac..97fd125 100644 (file)
@@ -14,6 +14,7 @@ __author__ = 'Thanh Ha'
 
 
 import click
+
 from lftools.openstack import image as os_image
 from lftools.openstack import server as os_server