-
Notifications
You must be signed in to change notification settings - Fork 35
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
As a developer, I have an easy way to check my commit and code locally before pushing #650
Comments
From: @ggainey (ggainey) None of the individual bookeeping tasks are bad - they're all great individually - but en masse, they cause a lot of friction for the dev, which is a good way to get people to not-contribute to your project Consider:
are all checks that happen serially in travis, and which therefore will fail individually. So if you're particularly dense (like I have been on frequent occasions), that can mean SIX separate pushes/builds, just to get to the point where travis will tell you if your code even builds/works. |
From: @fao89 (fao89) We can start a new directory on plugin_template or use .travis one.
example from: https://github.com/rochacbruno/dynaconf/blob/master/Makefile#L135-L146 |
From: @fao89 (fao89) https://medium.com/@jmarhee/using-pre-commit-and-post-update-git-hooks-10ca8171daf5 |
From: daviddavis (daviddavis) Thanks for the article. I posted a small PoC: |
From: @fao89 (fao89) I never got the notification, I like your PoC, I think we should be working on it after 3.6 |
From: daviddavis (daviddavis) One of the problems that was raised today during open floor is that users could have different flake8 plugins installed with different versions. We need to figure out how to handle this issue. |
From: pulpbot (pulpbot) PR: #278 |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! |
This issue is no longer marked for closure. |
1 similar comment
This issue is no longer marked for closure. |
Author: daviddavis (daviddavis)
Redmine Issue: 6938, https://pulp.plan.io/issues/6938
I was talking to ggainey about some of the automation checks we have in pulp (commit validation, style/lint checks, changelog, etc) and how it might be frustrating for new devs. I've heard the same feedback from other contributors such as galaxy.
We need to provide an easy way for developers to run our CI checks locally. I've seen other projects (bandersnatch[0], black[1], celery[2], etc) use pre-commit:
https://pre-commit.com/
[0] https://github.com/pypa/bandersnatch/blob/master/.pre-commit-config.yaml
[1] https://github.com/psf/black/blob/master/.pre-commit-config.yaml
[2] https://github.com/celery/celery/blob/master/.pre-commit-config.yaml
The text was updated successfully, but these errors were encountered: