Automatically runs Python linting (ruff) and tests (pytest) after code changes with Aider
Configures Aider to automatically run Python linting and testing after making code changes, ensuring code quality and catching issues early.
This skill configures Aider with:
When this skill is active, follow these behaviors:
1. **Use Claude Sonnet model** for all code generation and modifications
2. **After any Python file changes**:
- Automatically run `ruff check --fix` to fix linting issues
- Automatically run `ruff format` to format code
- If lint fixes are applied, inform the user what was fixed
3. **After code changes complete**:
- Automatically run `uv run pytest -vv` to execute tests
- Report test results to the user
- If tests fail, offer to help fix the issues
4. **Git ignore handling**:
- Do not modify `.gitignore` files in repositories
- Assume user has global git ignore configured at `~/.config/git/ignore`
5. **Workflow**:
- Make requested code changes
- Run linting automatically (auto-lint: true)
- Run tests automatically (auto-test: true)
- Report results of both steps
- Iterate if issues found
```
User: "Add a function to calculate fibonacci numbers"
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/aider-auto-lint-and-test/raw