-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Make pre-commit hooks available in pylint-1.9.5 #3485
Comments
Proposed a simple PR to fix it However I'm waiting on more guidance on how to congtribute to this project, as it is the first time! |
Hello @tomdodo , thank you for opening a ticket this was the right way to go about it (pull request directly can work too for non controversial changes and that's just my opinion :) ). You can open the pull request directly in this repository. This request seems sensible but I'm not completely sure about the way the old release are updated so I'll probably need a review of the pull request by someone else before merging it. |
@tomdodo, you need to do a pull request in the main pylint repository in pylint's master branch. The one you linked is in your own repository between one of your branch and your own master. |
as a workaround you can use "local" pre-commit hook configuration https://pre-commit.com/#repository-local-hooks This way you can run tools which don't have the pre-commit-hooks.yaml file |
Closing as there is a workaround and we're not maintaining python 2 anymore. |
The issue is about adding the
pre-commit-hooks.yaml
file to pylint-1.9.5 version.I know this issue has been fixed in pylint-2.4.0 and above.
However, we have a repo in our system that is still on python2 and the highest pylint version that is python2 compatible is 1.9.5.
Before you say 'you should migrate to python 3', this is exactly why we need this: pylint has the
pylint --py3k
option that will highlight any python2/3 compatibility problems in new code that is being committed, but this must run on python 2 (otherwise it won't print out any errors, see #2956)This is issue is about retroactively readding the
pre-commit-hooks.yaml
to version 1.9.5.Steps to reproduce
git commit
fails withCurrent behavior
Cannot use pylint-1.9.5 as a hook from another repo's
pre-commit-config.yaml
.Expected behavior
Should be able to use pylint-1.9.5 as a hook from another repo's
pre-commit-config.yaml
pylint --version output
N/A
The text was updated successfully, but these errors were encountered: