Linting

Before submitting changes, run the Ruff helper script from the repository root:

./scripts/ruff.sh

The script applies auto-formatting and safe lint fixes to src and test:

ruff format src test
ruff check --fix src test

After running the script, inspect any remaining lint output and address it manually before submitting a patch.