Clean Up
Overview
Clean and validate the current branch for the Robot SF repo by applying the dev guide workflow, running Ruff format/fix, and running parallel tests.
Cleanup Workflow
- •
Confirm repo and guidance
- •Verify the working directory looks like the Robot SF repo (e.g.,
.git,docs/dev_guide.md,.specify/memory/constitution.md, and.github/copilot-instructions.mdexist). - •Read
docs/dev_guide.md,.specify/memory/constitution.md, and.github/copilot-instructions.mdto align with required rules.
- •Verify the working directory looks like the Robot SF repo (e.g.,
- •
Ensure environment
- •If
VIRTUAL_ENVis empty and.venv/bin/activateexists, runsource .venv/bin/activate. - •If
.venv/bin/activateis missing, follow dev guide setup:uv sync --all-extras,source .venv/bin/activate, anduv run pre-commit install.
- •If
- •
Run formatting and fixes first
- •Use VS Code task "Ruff: Format and Fix":
uv run ruff check --fix . --output-format concise; uv run ruff format .; uv run ruff check . --statistics - •If Ruff reports issues, fix them and rerun until clean.
- •Use VS Code task "Ruff: Format and Fix":
- •
Run tests in parallel
- •Use VS Code task "Run Tests in parallel":
uv run pytest -n auto - •If tests fail, evaluate test value first (Constitution Principle XIII / dev guide testing strategy). Classify failures and decide whether to fix, defer, or ask for direction before removing or relaxing tests.
- •Use VS Code task "Run Tests in parallel":
- •
Report and follow-ups
- •Summarize commands run and results.
- •Note remaining failures, flaky tests, or follow-up tasks (for example, GUI tests if rendering changes were made, or CHANGELOG updates for user-facing changes).