We use Black (PEP 8 compliant) for code formatting.
Install it to format your code after writing code or use it in your IDE as code formatter.
To format run:
black dialect
We also use isort for imports sorting.
isort dialect
We 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): ...