hooks icon indicating copy to clipboard operation
hooks copied to clipboard

recipe-linter doesn't work with newer versions of pylint

Open ericriff opened this issue 1 year ago • 0 comments

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

ericriff avatar Nov 22 '23 17:11 ericriff