The easiest way to get set up for development is to install Python (3.8
, 3.9
, 3.10
, or 3.11
) and poetry, and then run the following from the top-level project directory:
cd python
poetry install
poetry shell
Following are some helpful commands for development:
-
To run the code formatter:
black .
-
To run lint checks:
pylint $(git ls-files '*.py')
-
To run tests:
pytest
Before committing and opening a PR, use the above commands to run the checks locally. This saves CI hours and ensures you only commit clean code.