huggingface / distil-whisper

Distilled variant of Whisper for speech recognition. 6x faster, 50% smaller, within 1% word error rate.
MIT License
3.52k stars 280 forks source link

add linter #110

Closed sanchit-gandhi closed 5 months ago

sanchit-gandhi commented 5 months ago

Adds a code linter to format code using ruff. To use, first install the dev deps from distil-whisper:

cd distil-whisper/training
pip install -e ."[dev]"

Then call the following to run the linter:

make style
sanchit-gandhi commented 5 months ago

cc @eustlb - when you start contributing you can run this linter to format the code on-the-fly