···1---
2name: modern-python
3-description: Work with Python (`uv` instead of `python`, modern type syntax, linting, formatting, etc.) properly!
4---
56- Never use `python`. Use `uv` instead of `python`
···11- Format with `uvx ruff format .`
12- Lint with `uvx ruff check .` and `uvx ty check`
13- Look before you leap (check conditions before acting)
00
···1---
2name: modern-python
3+description: Use when writing, reviewing, or refactoring Python to ensure adherence to modern best practices (type syntax, `uv` instead of `python`, linting, formatting, etc.)
4---
56- Never use `python`. Use `uv` instead of `python`
···11- Format with `uvx ruff format .`
12- Lint with `uvx ruff check .` and `uvx ty check`
13- Look before you leap (check conditions before acting)
14+- Default to no backwards compatibility preservation
15+- Declare variables close to use