sebdah/git-pylint-commit-hook

pylint is invoked incorrectly if .pylintrc is not present

volviq opened this issue · 2 comments

When committing, the pylint result is always shown as "0" although the python files are getting a rating of "10.0" when pylint is run manually.
If no .pylintrc is present, the script should not pass a parameter for .pylintrc, so that pylint runs with defaults.

Alternatively, it would be good, if a global .pylintrc can be used.
The use case for this is having a hooksPath set in .gitconfig which is available since git v2.90. There will always be project which do not yet have a .pylintrc inside the repository.

At least the error messages of pylint should be printed with some meaning. see #58

Fixed with #63 and released in 2.4.0