Skip to content

Commit a5741dd

Browse files
Clean up ruff errors
1 parent 2995232 commit a5741dd

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/actions/link-check/link_parser.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ def generate_issue_body(broken_links: list[BrokenLink]) -> str:
7373
7474
---
7575
This issue will be auto updated regularly if link issues are found.
76-
You may close it if you wish, though a new one will be created if link issues are still present.
76+
You may close it if you wish.
77+
Though a new one will be created if link issues are still present.
7778
7879
"""
7980

@@ -85,11 +86,11 @@ def strip_ansi_codes(text: str) -> str:
8586

8687

8788
if __name__ == "__main__":
88-
argparse = argparse.ArgumentParser(
89+
arg = argparse.ArgumentParser(
8990
description="Parse broken links from Sphinx log and generate issue body."
9091
)
91-
argparse.add_argument("logfile", type=str, help="Path to the Sphinx log file.")
92-
args = argparse.parse_args()
92+
arg.add_argument("logfile", type=str, help="Path to the Sphinx log file.")
93+
args = arg.parse_args()
9394
with open(args.logfile) as f:
9495
log_content_raw = f.read()
9596
log_content = strip_ansi_codes(log_content_raw)

0 commit comments

Comments
 (0)