When developing Dialect it is encouraged to use the uv project manager.
After installing uv, run uv sync to create or sync a venv with the projects dependencies.
We use the Ruff formatter (PEP 8 compliant) for code formatting.
To format the code run:
ruff check --select I --fix && ruff formatWe try to use Python type annotations whenever is possible.
-
Explicit classes instantiation like:
var = Class()
-
Non-nullable argument with default value:
# We omit `int` typing for `number` def method(text: str, number = 5, other: int | None = 20): ...