diff --git a/src/bootstraparse/modules/context_mngr.py b/src/bootstraparse/modules/context_mngr.py index 9e32372..113befb 100644 --- a/src/bootstraparse/modules/context_mngr.py +++ b/src/bootstraparse/modules/context_mngr.py @@ -13,9 +13,8 @@ # "class_insert" >> container[number] -> Get an element from one of the mapped methods -import rich from bootstraparse.modules import syntax -from bootstraparse.modules.error_mngr import MismatchedContainerError, log_exception, log_message +from bootstraparse.modules.error_mngr import MismatchedContainerError, log_exception, log_message # noqa class BaseContainer: diff --git a/src/bootstraparse/modules/parser.py b/src/bootstraparse/modules/parser.py index 3811c8f..bfc9fdb 100644 --- a/src/bootstraparse/modules/parser.py +++ b/src/bootstraparse/modules/parser.py @@ -3,8 +3,6 @@ # TODO: decide the parser scope from io import StringIO -import rich - import bootstraparse.modules.syntax as syntax diff --git a/src/bootstraparse/modules/syntax.py b/src/bootstraparse/modules/syntax.py index 7ec6bc7..31da602 100644 --- a/src/bootstraparse/modules/syntax.py +++ b/src/bootstraparse/modules/syntax.py @@ -6,8 +6,6 @@ import os from itertools import zip_longest from collections import namedtuple -import rich - from bootstraparse.modules.error_mngr import MismatchedContainerError import pyparsing as pp diff --git a/tests/modules/test_parser.py b/tests/modules/test_parser.py index 5003870..d4e1123 100644 --- a/tests/modules/test_parser.py +++ b/tests/modules/test_parser.py @@ -55,6 +55,6 @@ expected_list = [ def test_parse_line(): - list_parsed=parser.parse_line(complete_list) + list_parsed = parser.parse_line(complete_list) for element, expected in zip_longest(list_parsed, expected_list): - assert element.__class__ == expected \ No newline at end of file + assert element.__class__ == expected diff --git a/tests/modules/test_preparser.py b/tests/modules/test_preparser.py index 3cc7868..f4d533d 100644 --- a/tests/modules/test_preparser.py +++ b/tests/modules/test_preparser.py @@ -416,4 +416,3 @@ def test_make_replacement_errors(): assert pp.make_replacements("This is a test {}", "images") == "This is a test images" assert pp.make_replacements("This is a test {} {} {image} {b}", 1, 2, image="images", b="b") == "This is a test 1 2 images b" assert pp.make_replacements("This is a test {} {} {image} {b}", karm=3) == "This is a test {} {} {image} {b}" -