dev-check
Run ReVision's full local verification gate — ruff lint, ruff format check, and pytest — the same checks CI enforces. Use before committing non-trivial changes, or when asked to "check", "lint", "run
SKILL.md.claude/skills/dev-check/SKILL.md
GitHubdev-check
Run ReVision's pre-commit verification gate. This mirrors .github/workflows/ci.yml
so a green run locally means CI should pass.
Steps
Run these from the repository root, in order, and report any failures:
ruff check .
ruff format --check .
pytest -q
ruff check .— lint (rulesE, F, I, UP, B, SIM, line length 100).ruff format --check .— verify formatting without modifying files. If it reports files that would be reformatted, runruff format .to fix them.pytest -q— the full test suite (tests/mirrorssrc/revision/).
Notes
- In some environments
pytest/ruffare standalone binaries, not in the active interpreter's site-packages. Ifpython -m pytestreports "No module named pytest", callpytest/ruffdirectly (as above). - No network or API key is needed: tests inject a fake Anthropic client and run a live server on port 0.
- Do not commit unless all three pass.