From b5a0518b06d3a8041a85762c63a39bd8d42efdc1 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Mon, 12 Sep 2022 17:47:57 +0900 Subject: [PATCH] Update project_run docstring The docstring indicated that normal use of the function called DVC to determine if the function should be re-run, but that is not the case. --- spacy/cli/project/run.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spacy/cli/project/run.py b/spacy/cli/project/run.py index 13649b8db..e197662c9 100644 --- a/spacy/cli/project/run.py +++ b/spacy/cli/project/run.py @@ -53,10 +53,9 @@ def project_run( dry: bool = False, capture: bool = False, ) -> None: - """Run a named script defined in the project.yml. If the script is part - of the default pipeline (defined in the "run" section), DVC is used to - execute the command, so it can determine whether to rerun it. It then - calls into "exec" to execute it. + """Run a named script defined in the project.yml. If the script is a + command rather than a workflow, it is checked against the project lock file + to see if it should be re-run. project_dir (Path): Path to project directory. subcommand (str): Name of command to run.