SharkyTheKing / Sharky

Sharky's Cogs. If you have any suggestions or issues, please feel free to add them here.
19 stars 8 forks source link

Add pre-commit configuration and some new checks #109

Closed Jackenmen closed 3 years ago

Jackenmen commented 3 years ago

If you don't want some from the checks that are done here, let me know and I'll remove them. If you're not okay with doing the reformatting in the same PR that pre-commit configuration is added in, I can also split this PR in two (or in however many pieces you want).

Using pre-commit is as simple as running this in your (preferably global) environment: pip install -U pre-commit And then running pre-commit install in the root of your repository. From now on, pre-commit will automatically run when you make a commit and will let you know if there are issues with any of the checks it runs.