Skip to content

Commit

Permalink
Fix first/third party import sorting
Browse files Browse the repository at this point in the history
Change-Id: I8e3a28d931e5c1283f44c9b47c261662b7072470
Signed-off-by: Thanh Ha <[email protected]>
  • Loading branch information
zxiiro committed Jul 28, 2017
1 parent 8bae0fc commit 7d945e8
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .coafile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions lftools/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@


import click

from lftools.cli.deploy import deploy
from lftools.cli.jenkins import jenkins_cli
from lftools.cli.nexus import nexus
Expand Down
4 changes: 2 additions & 2 deletions lftools/cli/jenkins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@

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')
Expand Down
1 change: 1 addition & 0 deletions lftools/cli/nexus.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
##############################################################################
"""CLI entry point for nexus commands."""
import click

from lftools.nexus import cmd as nexuscmd


Expand Down
3 changes: 2 additions & 1 deletion lftools/nexus/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
"""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.
Expand Down
1 change: 1 addition & 0 deletions lftools/openstack/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@


import click

from lftools.openstack import image as os_image
from lftools.openstack import server as os_server

Expand Down

0 comments on commit 7d945e8

Please sign in to comment.