Stability-AI / stable-audio-tools

Generative models for conditional audio generation
MIT License
2.72k stars 258 forks source link

Add pre-commit config for black and isort #124

Open carlthome opened 4 months ago

carlthome commented 4 months ago

Just a suggestion but it would be nice to have auto-formatting with black running on this repo, to not have to think manually about code style.

akx commented 2 months ago

It would probably be even better to use ruff and ruff-format instead of black and isort :)

carlthome commented 2 months ago

I like ruff but my hesitation is that it's from a VC backed tech startup (https://github.com/astral-sh) rather than a FOSS community (https://github.com/psf), so it will probably start pushing premium features and ads eventually (like things usually go when VC is involved).

With that said, ruff is fast and convenient, so maybe why not? 😅