(self)
| 51 | self.offline = offline |
| 52 | |
| 53 | def run(self) -> int: |
| 54 | failed_checks = self.run_and_validate_if_no_previous_failures( |
| 55 | CHECK_BEFORE_PATH, previous_failures=[] |
| 56 | ) |
| 57 | failed_checks = self.run_and_validate_if_no_previous_failures( |
| 58 | MAIN_CHECKS_PATH, previous_failures=failed_checks |
| 59 | ) |
| 60 | failed_checks = self.run_and_validate_if_no_previous_failures( |
| 61 | CHECK_AFTER_PATH, previous_failures=failed_checks |
| 62 | ) |
| 63 | |
| 64 | success = len(failed_checks) == 0 |
| 65 | |
| 66 | print( |
| 67 | _prefix("+++") + f"{OK} All checks successful" |
| 68 | if success |
| 69 | else f"{FAIL} Checks failed: {failed_checks}" |
| 70 | ) |
| 71 | |
| 72 | return 0 if success else 1 |
| 73 | |
| 74 | def is_ignore_file(self, path: Path) -> bool: |
| 75 | return os.path.isdir(path) |
no test coverage detected