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):