(argv: list[str] | None = None)
| 421 | |
| 422 | |
| 423 | def main(argv: list[str] | None = None) -> int: |
| 424 | args = build_parser().parse_args(argv) |
| 425 | try: |
| 426 | findings = QualityGate(args.repo_root, project_path=args.project).run() |
| 427 | except ValueError as exc: |
| 428 | print(f"Quality gate failed: {exc}") |
| 429 | return 1 |
| 430 | _print_report(findings) |
| 431 | return 1 if findings else 0 |
| 432 | |
| 433 | |
| 434 | if __name__ == "__main__": |
no test coverage detected