| name | run-tests |
| description | Test execution workflow - run unit tests, linting, and type checking. Use when verifying code quality, running the full test suite, or checking before a commit. |
| <!-- disable-model-invocation | true --> |
| allowed-tools | Bash(pytest *) Bash(ruff *) Bash(pyright *) Bash(pre-commit *) Bash(uv run *) |
Run Tests Workflow
Prerequisites
uv sync
uv run pre-commit install
Test Commands
1. Lint
ruff check .
2. Format Check
ruff format --check .
3. Type Check
pyright
4. Run Tests
pytest
pytest tests/test_filename.py --cov=src/app
pytest tests/test_filename.py
pytest -v
pytest -x
5. All Checks at Once
pre-commit run --all-files
CI Pipeline Order
Run in this order for efficiency:
- Lint (fastest) - catch style issues
- Format - auto-fix style issues
- Type check - catch type errors
- Tests - verify functionality