- Get a
Makefile
from here: https://github.com/huggingface/diffusion-fast/blob/main/Makefile. - Install
ruff
:pip install ruff
. - Get the
ruff
configuration file throughpyproject.toml
: https://github.com/huggingface/diffusion-fast/blob/main/pyproject.toml.
Keep both the Makefile
and pyproject.toml
files at the root level of your project.
Before staging your changes, run the following from the root of your project directory:
make style && make quality