return 1
# Check that all the files to convert are included in the --all list
- cmdline = ["git", "ls-files", "**.py"]
- git_pys = sp.check_output(cmdline, cwd=str(PROJECT_DIR)).decode().split()
-
- cmdline = ["grep", "-l", f"auto-generated by '{SCRIPT_NAME}'"]
- cmdline += git_pys
+ cmdline = ["git", "grep", "-l", f"auto-generated by '{SCRIPT_NAME}'", "**.py"]
maybe_conv = sp.check_output(cmdline, cwd=str(PROJECT_DIR)).decode().split()
if not maybe_conv:
logger.error("no file to check? Maybe this script bitrot?")