Skip to content

Commit 56d4d87

Browse files
Auto-format code with black (#8895)
Co-authored-by: explosion-bot <explosion-bot@users.noreply.github.com>
1 parent 1dfffe5 commit 56d4d87

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

spacy/cli/project/pull.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def project_pull(project_dir: Path, remote: str, *, verbose: bool = False):
4545
cmd_hash = get_command_hash("", "", deps, cmd["script"])
4646
for output_path in cmd.get("outputs", []):
4747
url = storage.pull(output_path, command_hash=cmd_hash)
48-
logger.debug(f"URL: {url} for {output_path} with command hash {cmd_hash}")
48+
logger.debug(
49+
f"URL: {url} for {output_path} with command hash {cmd_hash}"
50+
)
4951
yield url, output_path
5052

5153
out_locs = [project_dir / out for out in cmd.get("outputs", [])]

spacy/cli/project/push.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ def project_push(project_dir: Path, remote: str):
5454
command_hash=cmd_hash,
5555
content_hash=get_content_hash(output_loc),
5656
)
57-
logger.debug(f"URL: {url} for output {output_path} with cmd_hash {cmd_hash}")
57+
logger.debug(
58+
f"URL: {url} for output {output_path} with cmd_hash {cmd_hash}"
59+
)
5860
yield output_path, url
5961

6062

spacy/tests/pipeline/test_spancat.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ def test_ngram_suggester(en_tokenizer):
123123
assert spans.shape[0] == len(spans_set)
124124
offset += ngrams.lengths[i]
125125
# the number of spans is correct
126-
assert_array_equal(OPS.to_numpy(ngrams.lengths), [max(0, len(doc) - (size - 1)) for doc in docs])
126+
assert_array_equal(
127+
OPS.to_numpy(ngrams.lengths),
128+
[max(0, len(doc) - (size - 1)) for doc in docs],
129+
)
127130

128131
# test 1-3-gram suggestions
129132
ngram_suggester = registry.misc.get("spacy.ngram_suggester.v1")(sizes=[1, 2, 3])

0 commit comments

Comments
 (0)