diff --git a/printer-linter/src/printerlinter/linters/directory.py b/printer-linter/src/printerlinter/linters/directory.py index d8626b1be4..e77cac96b9 100644 --- a/printer-linter/src/printerlinter/linters/directory.py +++ b/printer-linter/src/printerlinter/linters/directory.py @@ -35,5 +35,5 @@ class Directory(Linter): def checkFilesDeleted(self) -> Iterator[GitComment]: if not self._file.exists(): """ Check if there is a file that is deleted, this causes upgrade scripts to not work properly """ - yield GitComment( f"File: {self._file} must not be deleted as it is not allowed. It will create issues upgrading Cura" ) + yield GitComment( f'File: **{self._file}** must not be deleted as it is not allowed. It will create issues upgrading Cura' ) yield \ No newline at end of file diff --git a/printer-linter/src/terminal.py b/printer-linter/src/terminal.py index d8ef7a77cb..d93372571f 100644 --- a/printer-linter/src/terminal.py +++ b/printer-linter/src/terminal.py @@ -51,15 +51,16 @@ def main() -> None: if args.deleted: for file in args.Files: - deletedFiles = diagnoseIssuesWithFile(file, settings ) - comments_check["Error Files"].extend([d.toDict() for d in deletedFiles]) + if file not in files: + deletedFiles = diagnoseIssuesWithFile(file, settings) + comments_check["Error Files"].extend([d.toDict() for d in deletedFiles]) - results = yaml.dump(comments_check, default_flow_style=False, indent=4, width=240) + results = yaml.dump(comments_check, default_flow_style=False, indent=4, width=240) - if report: - report.write_text(results) - else: - print(results) + if report: + report.write_text(results) + else: + print(results) if to_fix or to_diagnose: for file in files: