From 284b530c631e7e7d110b519d54f591d66c754e13 Mon Sep 17 00:00:00 2001 From: Paul O'Leary McCann Date: Sat, 24 Jul 2021 15:31:17 +0900 Subject: [PATCH] Respect the no_skip value Seems like the logic for this was just left out. See #8796. --- spacy/cli/project/run.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/cli/project/run.py b/spacy/cli/project/run.py index 5339d2a21..ececc2507 100644 --- a/spacy/cli/project/run.py +++ b/spacy/cli/project/run.py @@ -212,6 +212,9 @@ def check_rerun( strict_version (bool): RETURNS (bool): Whether to re-run the command. """ + # Always rerun if no-skip is set + if command.get("no_skip", False): + return True lock_path = project_dir / PROJECT_LOCK if not lock_path.exists(): # We don't have a lockfile, run command return True