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

Pylint Commit Pre-hook #85

Open
rbharath opened this issue May 25, 2015 · 3 comments
Open

Pylint Commit Pre-hook #85

rbharath opened this issue May 25, 2015 · 3 comments

Comments

@rbharath
Copy link
Contributor

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?

@skearnes
Copy link
Contributor

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?

@rbharath
Copy link
Contributor Author

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.

@skearnes
Copy link
Contributor

Some of the tests won't work without some extensive setup via binstar or
others and may need to be excluded from the build (like AmberTools), but a
build that covers at least a subset of the tests is a good idea. You should
be able to use miniconda/binstar for the rdkit stuff I hope.

On Tue, May 26, 2015 at 12:08 PM, Bharath Ramsundar <
[email protected]> wrote:

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.


Reply to this email directly or view it on GitHub
#85 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants