Lint
This commit is contained in:
parent
528001db2c
commit
03c16e5bc7
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@
|
|||
# TODO: decide the parser scope
|
||||
from io import StringIO
|
||||
|
||||
import rich
|
||||
|
||||
import bootstraparse.modules.syntax as syntax
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
assert element.__class__ == expected
|
||||
|
|
|
|||
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue