-
Notifications
You must be signed in to change notification settings - Fork 11
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
Pylint Commit Pre-hook #85
Comments
SGTM; I use something similar in the Travis builds for many of my other repos. I usually include a pyflakes check as well as pylint. Is the exception for Google-style spacing easy to add? |
Yep, the exception is easy to add as well. I'll make a PR that includes the config for the commit hook and update the readme with directions. I like the idea of making a Travis build for this repo as well. If you're ok with it, I'll go ahead and set up a Travis build for vs-utils. |
Some of the tests won't work without some extensive setup via binstar or On Tue, May 26, 2015 at 12:08 PM, Bharath Ramsundar <
|
I've been experimenting with using pylint as a git commit hook (see https://git-scm.com/book/es/v2/Customizing-Git-Git-Hooks). The pylint hook (see http://git-pylint-commit-hook.readthedocs.org/en/latest/) forces python code to pass pylint before accepting commits to git. Having to pass pylint made me clean large swathes of ugliness in my code that I'd been avoiding for weeks.
I propose that we make pylint commit hooks standard for all commits to vs-utils. I think the codebase will become significantly cleaner if we're forced to pass lint before commits and PRs.
Thoughts or comments?
The text was updated successfully, but these errors were encountered: