Test-driven development workflow. Write failing tests first, then implement to make them pass.
Implement the following feature using Test-Driven Development: $ARGUMENTS
Follow the strict Red-Green-Refactor cycle:
tests/unit/ or tests/integration/ that:
test_<module>_<behavior>_when_<condition>)python -m pytest to verify tests FAIL for the right reasonspython -m pytestpython -m ruff check . and python -m mypy . — fix any issuespython -m pytest after each refactoring stepruff check . passesmypy . passes