UV is a tool that aims to replace pip and pip-tools for managing Python dependencies. It uses roughly the same API as pip-tools, but it is way faster since it is written in Rust. Moreover, it is able to install different versions of python.
-
Install the latest version :
curl -LsSf https://astral.sh/uv/install.sh | sh
-
Restart your shell
make install
- If
make install
fails due to pre-commit not found, please run once moremake install
.
To check code formatting and static analysis:
make ruff-check
You can also integrate it to your IDE to reformat your code each time you save a file.
To format code, run static analysis and to apply auto-fixes:
make ruff-fix