Skip to content

chore: enable ruff I, UP, B rules and auto-fix codebase - #571

Merged
mergify[bot] merged 1 commit into
mainfrom
devs/jd/chore/ruff-rules/Ic3b97d66f2d8b64eed5db8661566c8605358d9c3
Feb 18, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
devs/jd/chore/ruff-rules/Ic3b97d66f2d8b64eed5db8661566c8605358d9c3

Conversation

@jd

@jd jd commented Feb 18, 2026

Copy link
Copy Markdown
Owner

Enable import sorting (I), pyupgrade (UP), and flake8-bugbear (B)
ruff rules. Ignore B008 (function calls in defaults, intentional API),
B905 (zip strict), and E501 (line length, handled by formatter).

  • Auto-fix import sorting across all files
  • Convert typing.Union to X | Y syntax (UP007)
  • Convert typing.Optional to X | None (UP045)
  • Convert typing.List/Dict to builtin generics (UP006)
  • Convert .format() to f-strings (UP032)
  • Rename unused loop vars to _ (B007)
  • Replace assert False with raise AssertionError (B011)
  • Remove stale noqa comments (B902, I100)

Enable import sorting (I), pyupgrade (UP), and flake8-bugbear (B)
ruff rules. Ignore B008 (function calls in defaults, intentional API),
B905 (zip strict), and E501 (line length, handled by formatter).

- Auto-fix import sorting across all files
- Convert typing.Union to X | Y syntax (UP007)
- Convert typing.Optional to X | None (UP045)
- Convert typing.List/Dict to builtin generics (UP006)
- Convert .format() to f-strings (UP032)
- Rename unused loop vars to _ (B007)
- Replace assert False with raise AssertionError (B011)
- Remove stale noqa comments (B902, I100)

Change-Id: Ic3b97d66f2d8b64eed5db8661566c8605358d9c3
@jd
jd marked this pull request as ready for review February 18, 2026 16:00
@mergify

mergify Bot commented Feb 18, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

Rule: default


This pull request spent 58 seconds in the queue, including 11 seconds running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Feb 18, 2026
mergify Bot added a commit that referenced this pull request Feb 18, 2026
@mergify
mergify Bot merged commit c4bada4 into main Feb 18, 2026
9 checks passed
@mergify
mergify Bot deleted the devs/jd/chore/ruff-rules/Ic3b97d66f2d8b64eed5db8661566c8605358d9c3 branch February 18, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant