From f713dc8be2c7381d6296542592085e44a6bda6cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Verg=C3=A9?= Date: Thu, 7 Dec 2017 14:02:07 +0100 Subject: [PATCH] style: Fix E100 and E202 errors reported by pycodestyle --- setup.cfg | 1 + tests/rules/test_indentation.py | 1 + tests/test_cli.py | 4 ++-- tests/test_config.py | 4 ++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 82ba8ec..bd753fb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,6 +3,7 @@ universal = 1 [flake8] import-order-style = pep8 +application-import-names = yamllint [build_sphinx] all-files = 1 diff --git a/tests/rules/test_indentation.py b/tests/rules/test_indentation.py index 374f23c..3632a25 100644 --- a/tests/rules/test_indentation.py +++ b/tests/rules/test_indentation.py @@ -15,6 +15,7 @@ # along with this program. If not, see . from tests.common import RuleTestCase + from yamllint.parser import token_or_comment_generator, Comment from yamllint.rules.indentation import check diff --git a/tests/test_cli.py b/tests/test_cli.py index 47b5daf..341e3fc 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -30,10 +30,10 @@ try: except AssertionError: import unittest2 as unittest -from yamllint import cli - from tests.common import build_temp_workspace +from yamllint import cli + @unittest.skipIf(sys.version_info < (2, 7), 'Python 2.6 not supported') class CommandLineTestCase(unittest.TestCase): diff --git a/tests/test_config.py b/tests/test_config.py index 7e719b1..3b6b9c2 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -27,11 +27,11 @@ try: except AssertionError: import unittest2 as unittest +from tests.common import build_temp_workspace + from yamllint import cli from yamllint import config -from tests.common import build_temp_workspace - class SimpleConfigTestCase(unittest.TestCase): def test_parse_config(self):