Skip to content

Commit 8e6bd6d

Browse files
committed
Apply ruff formatting to 8 files
1 parent 47b5504 commit 8e6bd6d

8 files changed

Lines changed: 3 additions & 13 deletions

File tree

‎spacy/cli/find_threshold.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,9 @@ def filter_config(
207207
),
208208
)
209209
if hasattr(pipe, "cfg"):
210-
nlp.get_pipe(pipe_name).cfg = set_nested_item(pipe.cfg, config_keys, threshold)
210+
nlp.get_pipe(pipe_name).cfg = set_nested_item(
211+
pipe.cfg, config_keys, threshold
212+
)
211213

212214
eval_scores = nlp.evaluate(dev_dataset)
213215
if scores_key not in eval_scores:

‎spacy/ml/_precomputable_affine.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from thinc.api import Model, normal_init
22

33

4-
54
def PrecomputableAffine(nO, nI, nF, nP, dropout=0.1):
65
model = Model(
76
"precomputable_affine",

‎spacy/ml/extract_spans.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from thinc.types import Ints1d, Ragged
55

66

7-
87
def extract_spans() -> Model[Tuple[Ragged, Ragged], Ragged]:
98
"""Extract spans from a sequence of source arrays, as specified by an array
109
of (start, end) indices. The output is a ragged array of the

‎spacy/tests/lang/bg/test_tokenizer.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
def test_bg_tokenizer_handles_final_diacritics(bg_tokenizer):
42
text = "Ня̀маше яйца̀. Ня̀маше яйца̀."
53
tokens = bg_tokenizer(text)

‎spacy/tests/lang/la/test_exception.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
def test_la_tokenizer_handles_exc_in_text(la_tokenizer):
42
text = "scio te omnia facturum, ut nobiscum quam primum sis"
53
tokens = la_tokenizer(text)

‎spacy/tests/lang/sl/test_text.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
def test_long_text(sl_tokenizer):
42
# Excerpt: European Convention on Human Rights
53
text = """

‎spacy/tests/lang/sq/test_text.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
def test_long_text(sq_tokenizer):
42
# Excerpt: European Convention on Human Rights
53
text = """

‎spacy/tests/lang/xx/test_text.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
def test_long_text(xx_tokenizer):
42
# Excerpt: Text in Skolt Sami taken from https://www.samediggi.fi
53
text = """

0 commit comments

Comments
 (0)