-
Notifications
You must be signed in to change notification settings - Fork 107
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 simple pre-commit config #205
Conversation
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.
Looks like a good start! Thanks. If you're planning to do more (I see this is draft) I'll leave it or we can merge and work on it.
Hey @cooperlees, I'v updated the DEVELOPMENT.md to show how to run the linter, removed black from the dependencies in the I'm not sure why the tests on python3.9 fail. Locally there is no problem. Any ideas? fin swimmer |
Yeah this is a weird fuzx test one - I checked on main to see if I could reproduce to I was unable to:
Fail is from test_does_not_crash_on_any_valid_code: Applying it to main + trying to reproduce I get an error as your code has changed things - Will try with your branch if I get time today.
|
Hey @cooperlees, could you find out what happens with this fuzzy test? I'm lost :( fin swimmer |
Yeah, me too. I think we can merge this tho and try work this out before releasing. This has been happening on other PRs too. I'll try and get a local repro the next few days and nudge @Zac-HD for pointers on how to fix here ... |
Ah, that's actually a CPython bug! https://bugs.python.org/issue45738 I just haven't shipped a workaround in hypothesmith yet 😅 |
Scratch that, Hypothesmith 0.2.0 is now out and works around this upstream bug 👍 |
f9a490e
to
904696f
Compare
Thanks @Zac-HD ! |
This PR adds a basic pre-commit config. More pre-commit checks and configuration should be discussed.
To run the checks on a PR you have to give https://pre-commit.ci access to the repository. Checks will then run automatically on the next push
Closes: #197