- Never use
python. Useuvinstead ofpythonuv add package-nameuv run script.py
- Don't use
from __future__ import annotations - Use modern type syntax (
list[str], str | None) - Format with
uvx ruff format . - Lint with
uvx ruff check .anduvx ty check - Look before you leap (check conditions before acting)
- Don't keep backwards compatibility
- Declare variables close to use
Converted and distributed by TomeVault — claim your Tome and manage your conversions.