What problem does it solve?
This Skill enforces a rigorous Python testing workflow, ensuring code quality through a "zero warnings" policy, comprehensive test coverage, and efficient testing strategies. It prevents bugs, maintains a high standard of code, and reduces the time spent on debugging and rework.
Core Features & Use Cases
- Zero Warnings Tolerance: Mandates that all warnings are treated as errors, blocking commits until all quality checks (tests, linting, type checks) pass without warnings, ensuring pristine code.
- Targeted & Full Suite Testing: Guides on running targeted tests during development for fast iteration and a full suite (
make check) before committing, balancing speed and thoroughness.
- Pytest Best Practices: Integrates patterns for test organization (AAA), fixtures, parametrization, and mocking, ensuring robust, maintainable, and effective tests.
- Use Case: You've made changes to a Python module. This skill ensures the AI will run targeted tests, fix any failures or warnings immediately, and then run the full test suite before committing, guaranteeing that no regressions or quality issues are introduced into your codebase.
Quick Start
Run all tests for the current Python project.
Ensure there are zero warnings and all quality checks pass.
If any issues are found, fix them immediately.