As soon as you clone the repo, follow the steps listed below:
-
Install the latest Node.
-
Install Node packages (development tools only):
$ npm install
-
Create Python environment and install dependencies:
$ poetry install --sync
-
In VS Code, select the environment's Python as the default interpreter.
-
Test the tools installed, Ruff and Pytest:
$ ruff check . $ ruff format $ mypy . $ pytest
-
Install and autoupdate Pre-commit and hooks.
$ pre-commit install $ pre-commit install --hook-type commit-msg
If some of the hooks are updated, commit and push the updated
.pre-commit-config.yaml
file.