Context
CONTRIBUTING.md states that the project formats with black (default config) and lints with ruff (default config), but notes CI does not enforce them yet. This issue closes that gap.
What to do
- Add
black --check and ruff check steps to the GitHub Actions workflow, scoped to prototype/.
- Add
black and ruff to the dev dependencies.
- Run
black and ruff --fix once over prototype/ and commit the formatting pass in a separate commit from the CI change, so the CI commit is reviewable on its own.
Acceptance criteria
Good to know
Use default configs for both tools (no custom rule tweaking in this PR). If ruff flags something that needs a real code change rather than autofix, leave it and mention it in the PR description.
Context
CONTRIBUTING.mdstates that the project formats withblack(default config) and lints withruff(default config), but notes CI does not enforce them yet. This issue closes that gap.What to do
black --checkandruff checksteps to the GitHub Actions workflow, scoped toprototype/.blackandruffto the dev dependencies.blackandruff --fixonce overprototype/and commit the formatting pass in a separate commit from the CI change, so the CI commit is reviewable on its own.Acceptance criteria
black-formatted or hasrufferrors.CONTRIBUTING.mdupdated to say the checks are now enforced.Good to know
Use default configs for both tools (no custom rule tweaking in this PR). If
ruffflags something that needs a real code change rather than autofix, leave it and mention it in the PR description.