- Get a
Makefilefrom here: https://github.com/huggingface/diffusion-fast/blob/main/Makefile. - Install
ruff:pip install ruff. - Get the
ruffconfiguration 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