()
| 54 | |
| 55 | |
| 56 | def main() -> None: |
| 57 | args = parse_args() |
| 58 | |
| 59 | location = REPO_ROOT / ".lintbin" / "from_link" / "adapters" |
| 60 | location.mkdir(parents=True, exist_ok=True) |
| 61 | |
| 62 | if args.lint_link: |
| 63 | download_file(args.lint_link, location / args.lint_name) |
| 64 | |
| 65 | if args.init_link: |
| 66 | download_file(args.init_link, location / args.init_name) |
| 67 | |
| 68 | if args.run_init: |
| 69 | # Save the content to a file named after the name argument |
| 70 | subprocess_args = ["python3", location / args.init_name] + args.args_for_file |
| 71 | subprocess.run(subprocess_args, check=True) |
| 72 | if args.run_lint: |
| 73 | subprocess_args = ["python3", location / args.lint_name] + args.args_for_file |
| 74 | subprocess.run( |
| 75 | subprocess_args, |
| 76 | check=True, |
| 77 | ) |
| 78 | |
| 79 | |
| 80 | if __name__ == "__main__": |
no test coverage detected