Skip to content

style: lint Python code with Ruff #11

style: lint Python code with Ruff

style: lint Python code with Ruff #11

Triggered via push October 29, 2024 18:24
Status Failure
Total duration 18s
Artifacts

run-linter.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Ruff (C414): tool/extract_deps.py#L42
tool/extract_deps.py:42:24: C414 Unnecessary `list` call within `sorted()`
Ruff (C414): tool/extract_deps.py#L43
tool/extract_deps.py:43:19: C414 Unnecessary `list` call within `sorted()`
Ruff (C414): tool/extract_deps.py#L93
tool/extract_deps.py:93:32: C414 Unnecessary `list` call within `sorted()`
Ruff (F841): tool/get_pr_info.py#L142
tool/get_pr_info.py:142:13: F841 Local variable `commit_url` is assigned to but never used
Ruff (W293): tool/get_pr_review.py#L75
tool/get_pr_review.py:75:1: W293 Blank line contains whitespace
Ruff (F841): tool/github_repo.py#L189
tool/github_repo.py:189:5: F841 Local variable `unique_repos_output` is assigned to but never used
Ruff: tool/main.py#L87
tool/main.py:87:9: SyntaxError: Duplicate keyword argument "choices"
Ruff (E712): tool/report_diff.py#L112
tool/report_diff.py:112:27: E712 Avoid equality comparisons to `True`; use `if df["author_first"]:` for truth checks
Ruff (E712): tool/report_diff.py#L113
tool/report_diff.py:113:26: E712 Avoid equality comparisons to `True`; use `if df["prr_first"]:` for truth checks
Ruff (E712): tool/report_diff.py#L114
tool/report_diff.py:114:25: E712 Avoid equality comparisons to `True`; use `if df["author_first"]:` for truth checks
ruff
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
ruff
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-python@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/