Skip to content

Commit e684b0c

Browse files
committed
Apply ruff formatting to find_threshold.py and language.py
1 parent 4cf4e9e commit e684b0c

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

‎spacy/cli/find_threshold.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ def filter_config(
208208
)
209209
if hasattr(pipe, "cfg"):
210210
nlp.get_pipe(pipe_name).cfg = set_nested_item( # type: ignore[attr-defined]
211-
pipe.cfg, config_keys, threshold # type: ignore[attr-defined]
211+
pipe.cfg,
212+
config_keys,
213+
threshold, # type: ignore[attr-defined]
212214
)
213215

214216
eval_scores = nlp.evaluate(dev_dataset)

‎spacy/language.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,9 @@ def from_config(
18321832
filled["pretraining"] = orig_pretraining
18331833
config["pretraining"] = orig_pretraining
18341834
resolved_nlp = registry.resolve(
1835-
filled["nlp"], validate=validate, schema=ConfigSchemaNlp # type: ignore[arg-type]
1835+
filled["nlp"],
1836+
validate=validate,
1837+
schema=ConfigSchemaNlp, # type: ignore[arg-type]
18361838
)
18371839
create_tokenizer = resolved_nlp["tokenizer"]
18381840
create_vectors = resolved_nlp["vectors"]

0 commit comments

Comments
 (0)