# Code Style Ruff handles import sorting, linting, and formatting. Run it inside the managed environment before opening a PR: ```bash uv run ruff format . uv run ruff check . ``` Editors such as VS Code can use the Ruff extension with "format on save" to match the repo defaults. ## Pre-commit Hooks Install the bundled hooks to ensure Ruff runs automatically before every commit: ```bash uv tool run pre-commit install ``` The configuration lives in `.pre-commit-config.yaml` and wires both `ruff --fix` and `ruff format`.