Skip to content

ci(ruff): add ruff lint+format CI gate, format whole tree#24

Merged
ernestprovo23 merged 1 commit into
mainfrom
ci/pr-b-ruff
Jun 9, 2026
Merged

ci(ruff): add ruff lint+format CI gate, format whole tree#24
ernestprovo23 merged 1 commit into
mainfrom
ci/pr-b-ruff

Conversation

@ernestprovo23

Copy link
Copy Markdown
Member

Summary

  • Adds [tool.ruff] config to pyproject.toml (line-length=100, select E/W/F/I/B/UP)
  • Adds lint job to test.yml running ruff check + ruff format --check
  • Runs ruff format over all 22 source/test files (18 reformatted — pure whitespace/style churn, zero logic changes)
  • Runs ruff check --fix auto-fixing 54 issues (isort ordering, pyupgrade patterns, unused imports, bugbear)
  • Fixes B905 in council.py: zip(members, gathered, strict=True) — semantically correct since both iterables are derived from the same list

Lint errors fixed vs flagged

All 55 ruff issues resolved: 54 via --fix, 1 (B905) via manual strict=True addition. No unfixable errors remain.

Test plan

  • ruff job passes: ruff check . and ruff format --check . both clean
  • All 3 pytest matrix legs pass (66 tests each)

- Add [tool.ruff] and [tool.ruff.lint] config to pyproject.toml (line-length=100,
  select E/W/F/I/B/UP, ignore E501 since format handles wrapping)
- Add `lint` job (ruff check + ruff format --check) to test.yml
- Run `ruff format` over all 22 files (18 reformatted, formatting churn only)
- Run `ruff check --fix` (54 auto-fixed: isort, pyupgrade, bugbear, pyflakes)
- Fix B905 in council.py: add strict=True to zip() over equal-length iterables
- All 66 tests pass after changes
@ernestprovo23
ernestprovo23 merged commit 002b622 into main Jun 9, 2026
4 checks passed
@ernestprovo23
ernestprovo23 deleted the ci/pr-b-ruff branch June 10, 2026 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant