-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
chore: add pre-commit hook for pylint #1630
base: main
Are you sure you want to change the base?
Conversation
This was not part of pre-commit since pylint was uncomfortably slow - and ruff covered most anyway. Is this faster nowadays? Also, have a look at our tox pylint invocation. We run it with different arguments for tests. Not sure what default Lines 31 to 32 in 905b246
Maybe this can be configured in pyproject.toml for a global pylint invocation. |
I initially added it because I noticed inconsistencies in the test results when running tox versus executing pylint directly. At first, I suspected this was due to different virtual environments being used, but I’ve now realized the root cause is different: It turns out that submodules are only recognized if an When running: No issues are reported. However, when specifying a file explicitly:
I’ve also added the missing |
https://pylint.pycqa.org/en/latest/user_guide/installation/pre-commit-integration.html explicitly mentions
thus I asked. Further
So should we |
Description
This PR adds a pre-commit hook for pylint to ensure code quality checks are performed automatically before each commit.
Type of change
Checklist