Skip to content

Migrate linting from flake8+isort to ruff#1033

Merged
GlassOfWhiskey merged 1 commit into
masterfrom
migrate-to-ruff
Apr 17, 2026
Merged

Migrate linting from flake8+isort to ruff#1033
GlassOfWhiskey merged 1 commit into
masterfrom
migrate-to-ruff

Conversation

@GlassOfWhiskey
Copy link
Copy Markdown
Member

Replace flake8, flake8-bugbear, and isort with ruff (rules E, W, F, B, I). black remains the sole formatter; ruff format is not used.

  • Delete .flake8; add [tool.ruff] sections to pyproject.toml
  • Update Makefile: fold flake8 target into format/format-check
  • Update tox.ini, AGENTS.md, CONTRIBUTING.md, and skill files
  • Fix pre-existing violations surfaced by ruff: E713 (auto-fix), B007 (rename to _dirpath), B024 (remove spurious ABC from CommandOptions), B905 (add strict=True to zip() calls)
  • Suppress B904 globally (pre-existing raise-without-from violations)
  • Deduplicate validate/commit steps in mypy sub-skills; point to parent SKILL.md as the single source of truth

Replace `flake8`, `flake8-bugbear`, and `isort` with `ruff` (rules
`E`, `W`, `F`, `B`, `I`). `black` remains the sole formatter;
`ruff format` is not used.

- Delete `.flake8`; add `[tool.ruff]` sections to `pyproject.toml`
- Update `Makefile`: fold `flake8` target into `format`/`format-check`
- Update `tox.ini`, `AGENTS.md`, `CONTRIBUTING.md`, and skill files
- Fix pre-existing violations surfaced by `ruff`: `E713` (auto-fix),
  `B007` (rename to `_dirpath`), `B024` (remove spurious `ABC` from
  `CommandOptions`), `B905` (add `strict=True` to `zip()` calls)
- Suppress `B904` globally (pre-existing raise-without-from violations)
- Deduplicate validate/commit steps in mypy sub-skills; point to
  parent `SKILL.md` as the single source of truth
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.36%. Comparing base (864d95c) to head (2bf089c).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1033   +/-   ##
=======================================
  Coverage   74.36%   74.36%           
=======================================
  Files          90       90           
  Lines       12496    12496           
  Branches     2193     2193           
=======================================
  Hits         9293     9293           
  Misses       2682     2682           
  Partials      521      521           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GlassOfWhiskey GlassOfWhiskey merged commit 3891a2c into master Apr 17, 2026
41 checks passed
@GlassOfWhiskey GlassOfWhiskey deleted the migrate-to-ruff branch April 17, 2026 19:15
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.

2 participants