diff --git a/tests/__init__.py b/tests/__init__.py index 8b85ff7..efc173a 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -1,6 +1,6 @@ # -import hy -from .native_tests.math import * -from .native_tests.language import * +import hy # noqa +from .native_tests.math import * # noqa +from .native_tests.language import * # noqa diff --git a/tests/compilers/test_ast.py b/tests/compilers/test_ast.py index 23368aa..59d976c 100644 --- a/tests/compilers/test_ast.py +++ b/tests/compilers/test_ast.py @@ -258,17 +258,17 @@ def test_ast_expression_basics(): """ Ensure basic AST expression conversion works. """ code = hy_compile(tokenize("(foo bar)")).body[0] tree = ast.Expr(value=ast.Call( - func=ast.Name( - id="foo", - ctx=ast.Load(), - ), - args=[ - ast.Name(id="bar", ctx=ast.Load()) - ], - keywords=[], - starargs=None, - kwargs=None, - )) + func=ast.Name( + id="foo", + ctx=ast.Load(), + ), + args=[ + ast.Name(id="bar", ctx=ast.Load()) + ], + keywords=[], + starargs=None, + kwargs=None, + )) _ast_spotcheck("value.func.id", code, tree) diff --git a/tests/importer/test_importer.py b/tests/importer/test_importer.py index a63c071..ce5627c 100644 --- a/tests/importer/test_importer.py +++ b/tests/importer/test_importer.py @@ -4,8 +4,8 @@ import ast def test_basics(): "Make sure the basics of the importer work" - module = import_file_to_module("basic", - "tests/resources/importer/basic.hy") + import_file_to_module("basic", + "tests/resources/importer/basic.hy") def test_stringer(): diff --git a/tests/lex/test_lex.py b/tests/lex/test_lex.py index 7740fed..d3b3706 100644 --- a/tests/lex/test_lex.py +++ b/tests/lex/test_lex.py @@ -32,13 +32,13 @@ from hy.lex import tokenize def test_lex_exception(): """ Ensure tokenize throws a fit on a partial input """ try: - objs = tokenize("(foo") + tokenize("(foo") assert True is False except LexException: pass try: - objs = tokenize("&foo&") + tokenize("&foo&") assert True is False except LexException: pass diff --git a/tests/macros/test_macro_processor.py b/tests/macros/test_macro_processor.py index dd457d3..d9d7144 100644 --- a/tests/macros/test_macro_processor.py +++ b/tests/macros/test_macro_processor.py @@ -2,9 +2,7 @@ from hy.macros import macro, process from hy.lex import tokenize -from hy.models.expression import HyExpression from hy.models.string import HyString -from hy.models.symbol import HySymbol from hy.models.list import HyList