-
Notifications
You must be signed in to change notification settings - Fork 46
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
Setup pre-commit hooks #144
Conversation
@ardunn I see this conflicts with an existing lint script though not where exactly since |
@janosh for sanity sake it might be easiest to just nuke this branch and then copy over the pre-commit hooks on your side manually. Then we can make a minimal new PR and see the actual changes as intended (rather than a bunch of doc changes which are hard to sift through!!) Also, for reference I don't really care about how |
@ardunn Sure thing, I resolved the merge conflicts and excluded |
Sure, is it ready to review now? Or if not just tag me when it is |
Yes, I think it's good to go. |
Actually, hold on. All the HTML files under |
…codespell skip flake8 in CI due to large number of existing violations
may want to setup pre-commit.ci instead
exclude rebuild_docs.py in .pre-commit-config.yaml
There we go, now it's ready for review. |
The failed test stems from the
|
@janosh Ok! I have pushed some commits to try to fix the hash issue on matminer. I think that is the most natural place to fix it. The downside is that this hash problem will continue until the next release of matminer when I will update the matbench requirements... |
Does this PR need to wait until then? |
No, I can just merge in now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Split out of #126 for clarity.
Includes the usual hooks also used by pymatgen and other MP repos (except for
pylint
andmypy
).Reasons:
mypy
doesn't make much sense here without type annotationspylint
is a bit slow and doesn't play well with thepre-commit
framework