hooks
hooks copied to clipboard
recipe-linter doesn't work with newer versions of pylint
The instructions from the hook itself do not work, it fails with
[HOOK - recipe_linter.py] pre_export(): ERROR: Install pylint to use 'recipe_linter' hook: 'pip install pylint astroid'
Looking at the linter code it does
from pylint import epylint as lint
https://github.com/conan-io/hooks/blob/master/hooks/recipe_linter.py#L21
but epylint
is not available on latest pylint
(removed on 3.0.0). I fixed it locally by installing the latest 2.x pylint
https://github.com/pylint-dev/pylint/releases/tag/v3.0.0