Respect the no_skip value

Seems like the logic for this was just left out. See #8796.
This commit is contained in:
Paul O'Leary McCann 2021-07-24 15:31:17 +09:00
parent 6bbc2b1956
commit 284b530c63
1 changed files with 3 additions and 0 deletions

View File

@ -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