To build and run Ragbits from the source code:
$ source ./setup_dev_env.sh
We use ruff
for linting and formatting our code. To format your code, run:
$ uvx ruff format
To lint the code, run:
$ uvx ruff check --fix
We use mypy
for type checking. To perform type checking, simply run:
$ uv run mypy .
We also recommend to run checkers on pre-commit/push hook. To set it up, follow these steps:
$ uv run scripts/install_git_hooks.py
Then decide whether you want to run the checks before each commit or before each push.