Skip to content

repo to demonstrate the issue with pylint and ini-hook using setup.cfg instead of .pylintrc

Notifications You must be signed in to change notification settings

rdehouss/pylint-issue-init-hook-setup-cfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylint issue with init-hook and setup.cfg

$ pipenv run pylint --version
pylint 2.2.2
astroid 2.1.0
Python 3.7.2 (default, Dec 27 2018, 07:35:52)
[Clang 10.0.0 (clang-1000.11.45.5)]

Working

find . -name "*.py" -not -path '*/\.*' -exec pipenv run pylint --rcfile=.pylintrc '{}' +

Using .pylintrc: result

------------------------------------
Your code has been rated at 10.00/10

Not working

find . -name "*.py" -not -path '*/\.*' -exec pipenv run pylint --rcfile=setup.cfg '{}' +

Using setup.cfg: result

************* Module src.hello_world
src/hello_world.py:1:0: E0401: Unable to import 'libs.hello_world' (import-error)

--------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 10.00/10, -10.00)

About

repo to demonstrate the issue with pylint and ini-hook using setup.cfg instead of .pylintrc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages