johnwmillr / LyricsGenius

Download song lyrics and metadata from Genius.com 🎶🎤
http://www.johnwmillr.com/scraping-genius-lyrics/
MIT License
878 stars 159 forks source link

Add Pre-Commit Config #214

Open allerter opened 3 years ago

allerter commented 3 years ago

Pre-commit is an easy and straightforward way to run our checks before letting the commit go through. It's really useful to catch simple mistakes and then having to make another commit to fix those mistakes. This pre-commit config creates hooks for flake8 and doc8. We could possibly create hooks for creating docs or even running the unit tests, but since those tests take some time, it's better to leave them out.

After #199 is merged, we should update the contributing guidelines in this PR to mention the config and then merge it.