Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Pre-Commit Config #214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

allerter
Copy link
Contributor

@allerter allerter commented Jun 6, 2021

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.

allerter added 2 commits June 6, 2021 10:47
We need them to be pinned to exact versions in order not to get different results when using tox/CI and pre-commit.
@allerter allerter added this to the 3.1.0 milestone Jun 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant