Skip to content

Styling and Linting

We use Ruff for linting the codebase.

To lint your code, run:

ruff check . --fix

If ruff does not exist yet on the pyproject.toml as dependency: Add ruff to the dependencies using Poetry Command

poetry add --group dev ruff

Your pyproject.toml will now have something like this:

[tool.poetry.group.dev.dependencies]
ruff = "^0.1.15"

To enable formatting on save, install the Ruff extension in your code editor.