()
| 51 | |
| 52 | |
| 53 | def main() -> None: |
| 54 | errors: List[str] = [] |
| 55 | |
| 56 | for file_path in sys.argv[1:]: |
| 57 | try: |
| 58 | file_has_license(file_path) |
| 59 | except Exception as e: |
| 60 | errors.append(str(e)) |
| 61 | |
| 62 | if errors: |
| 63 | print("Missing license header in files:") |
| 64 | for error in errors: |
| 65 | print(" -", error) |
| 66 | sys.exit(1) |
| 67 | |
| 68 | |
| 69 | if __name__ == "__main__": |
no test coverage detected