(argv: Sequence[str] | None = None)
| 89 | |
| 90 | |
| 91 | def main(argv: Sequence[str] | None = None) -> None: |
| 92 | parser = argparse.ArgumentParser() |
| 93 | parser.add_argument("paths", nargs="*") |
| 94 | args = parser.parse_args(argv) |
| 95 | |
| 96 | error_set = get_warnings_and_exceptions_from_api_path() |
| 97 | |
| 98 | for path in args.paths: |
| 99 | with open(path, encoding="utf-8") as fd: |
| 100 | content = fd.read() |
| 101 | validate_exception_and_warning_placement(path, content, error_set) |
| 102 | |
| 103 | |
| 104 | if __name__ == "__main__": |
no test coverage detected