From 43c50379e0a991578dbb05332bdc0513a141cb8a Mon Sep 17 00:00:00 2001 From: xatier Date: Mon, 27 May 2019 01:37:40 -0700 Subject: [PATCH] Sort import orders --- setup.py | 2 +- yamllint/cli.py | 8 ++++---- yamllint/rules/colons.py | 2 +- yamllint/rules/indentation.py | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index 1b93008..ffa2ee2 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -from setuptools import setup, find_packages +from setuptools import find_packages, setup from yamllint import (__author__, __license__, APP_NAME, APP_VERSION, APP_DESCRIPTION) diff --git a/yamllint/cli.py b/yamllint/cli.py index c5916e5..9975b4e 100644 --- a/yamllint/cli.py +++ b/yamllint/cli.py @@ -16,15 +16,15 @@ from __future__ import print_function -import os -import sys -import platform import argparse +import os +import platform +import sys from yamllint import APP_DESCRIPTION, APP_NAME, APP_VERSION +from yamllint import linter from yamllint.config import YamlLintConfig, YamlLintConfigError from yamllint.linter import PROBLEM_LEVELS -from yamllint import linter def find_files_recursively(items): diff --git a/yamllint/rules/colons.py b/yamllint/rules/colons.py index fd46bef..1a63cad 100644 --- a/yamllint/rules/colons.py +++ b/yamllint/rules/colons.py @@ -72,7 +72,7 @@ Use this rule to control the number of spaces before and after colons (``:``). import yaml -from yamllint.rules.common import spaces_after, spaces_before, is_explicit_key +from yamllint.rules.common import is_explicit_key, spaces_after, spaces_before ID = 'colons' diff --git a/yamllint/rules/indentation.py b/yamllint/rules/indentation.py index 8bb7175..d83eb65 100644 --- a/yamllint/rules/indentation.py +++ b/yamllint/rules/indentation.py @@ -193,7 +193,7 @@ Use this rule to control the indentation. import yaml from yamllint.linter import LintProblem -from yamllint.rules.common import is_explicit_key, get_real_end_line +from yamllint.rules.common import get_real_end_line, is_explicit_key ID = 'indentation'