diff --git a/spacy/cli/project/assets.py b/spacy/cli/project/assets.py index efa4d637a..70fcd0ecf 100644 --- a/spacy/cli/project/assets.py +++ b/spacy/cli/project/assets.py @@ -60,9 +60,14 @@ def project_assets(project_dir: Path, *, sparse_checkout: bool = False) -> None: else: dest.unlink() if "repo" not in asset["git"] or asset["git"]["repo"] is None: - msg.fail("A git asset must include 'repo', the repository address.", exits=1) + msg.fail( + "A git asset must include 'repo', the repository address.", exits=1 + ) if "path" not in asset["git"] or asset["git"]["path"] is None: - msg.fail("A git asset must include 'path' - use \"\" to get the entire repository.", exits=1) + msg.fail( + "A git asset must include 'path' - use \"\" to get the entire repository.", + exits=1, + ) git_checkout( asset["git"]["repo"], asset["git"]["path"], diff --git a/spacy/cli/project/run.py b/spacy/cli/project/run.py index ef753d256..3736a6e1c 100644 --- a/spacy/cli/project/run.py +++ b/spacy/cli/project/run.py @@ -73,7 +73,14 @@ def project_run( if subcommand in workflows: msg.info(f"Running workflow '{subcommand}'") for cmd in workflows[subcommand]: - project_run(project_dir, cmd, overrides=overrides, force=force, dry=dry, capture=capture) + project_run( + project_dir, + cmd, + overrides=overrides, + force=force, + dry=dry, + capture=capture, + ) else: cmd = commands[subcommand] for dep in cmd.get("deps", []): diff --git a/spacy/tests/test_cli.py b/spacy/tests/test_cli.py index ae4cec17d..a9525caae 100644 --- a/spacy/tests/test_cli.py +++ b/spacy/tests/test_cli.py @@ -553,7 +553,7 @@ def test_get_third_party_dependencies_runs(): ("/tmp", "/tmp/subdir", True), ("/tmp", "/tmpdir", False), ("/tmp", "/tmp/subdir/..", True), - ("/tmp", "/tmp/..", False) + ("/tmp", "/tmp/..", False), ], ) def test_is_subpath_of(parent, child, expected):