Dependencies needed to build and run Ragbits from the source code:
We use ruff
for linting and formatting our code. To format your code, run:
$ uv run ruff format
To lint the code, run:
$ uv run ruff check --fix
We use mypy
for type checking. To perform type checking, simply run:
$ uv run mypy .
We use pytest
for testing. To run the tests, simply run:
$ uv run pytest
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.