Skip to content
Snippets Groups Projects

CI: ruff: use 0.11.0 (avoid regression: Cannot use star annotation)

Merged Oliver Smith requested to merge ollieparanoid/pmbootstrap:pin-ruff-to-0.11.0 into master

Ruff 0.11.0 is incorrectly printing the following types of errors:

pmb/helpers/logging.py:169:34: SyntaxError: Cannot use star annotation on Python 3.10 (syntax was added in Python 3.11)
    |
169 | def critical(msg: object, *args: str, **kwargs: Any) -> None:
    |                                  ^^^
170 |     logging.critical(msg, *args, **kwargs)
    |

But the code works fine in Python 3.10 (see pytest-python3.10 CI job). This is a known upstream bug, pin to the previous version until it is fixed.

Related: https://github.com/astral-sh/ruff/issues/16874

Merge request reports

Merge request pipeline #217552 canceled

Merge request pipeline canceled for aced5113

Test summary results are being parsed

Merged by Oliver SmithOliver Smith 2 weeks ago (Mar 20, 2025 8:42pm UTC)

Loading

Pipeline #217553 passed

Pipeline passed for aced5113 on master

Deployed to dep‎loy‎ 2 weeks ago

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading