Merge pull request #8801 from polm/fix/respect-no-skip (fixes #8796)

Respect the no_skip value
This commit is contained in:
Ines Montani 2021-07-27 12:16:47 +10:00 committed by GitHub
commit 34c401f04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -212,6 +212,9 @@ def check_rerun(
strict_version (bool): strict_version (bool):
RETURNS (bool): Whether to re-run the command. 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 lock_path = project_dir / PROJECT_LOCK
if not lock_path.exists(): # We don't have a lockfile, run command if not lock_path.exists(): # We don't have a lockfile, run command
return True return True