asteroid-team / torch-audiomentations

Fast audio data augmentation in PyTorch. Inspired by audiomentations. Useful for deep learning.
MIT License
969 stars 88 forks source link

Use pre-commit #65

Open mogwai opened 3 years ago

mogwai commented 3 years ago

In pyannote.audio we have a a set of functions that run before commiting. This is through the pre-commit git hook. It makes code styling more consistent, checks for missing imports , unused imports, formats code that is to be changed, removes whitespace etc. I've seen @iver make a few commits to blackify code so thought this might help save him some time.

More details