remove unncessary fmt:off instructions

This commit is contained in:
svlandeg 2023-07-26 13:47:55 +02:00
parent 84e7d05a0b
commit 2f88c4ef09

View File

@ -279,7 +279,6 @@ TRAIN_EXAMPLE_2 = dict(
@pytest.mark.slow
@pytest.mark.parametrize(
"component,examples",
# fmt: off
[
("tagger", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
("morphologizer", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
@ -288,8 +287,7 @@ TRAIN_EXAMPLE_2 = dict(
("ner", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
("spancat", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
("textcat", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2]),
]
# fmt: on
],
)
def test_init_config_trainable(component, examples, en_vocab):
if component == "textcat":
@ -352,9 +350,7 @@ def test_init_config_trainable(component, examples, en_vocab):
@pytest.mark.slow
@pytest.mark.parametrize(
"component,examples",
# fmt: off
[("tagger,parser,morphologizer", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2] * 15)]
# fmt: on
[("tagger,parser,morphologizer", [TRAIN_EXAMPLE_1, TRAIN_EXAMPLE_2] * 15)],
)
def test_init_config_trainable_multiple(component, examples, en_vocab):
train_docs = []