Linting more than one dir or package, can hide errors or cause wrong errors #2966
Labels
Bug 🪲
Import system
Needs reproduction 🔍
Need a way to reproduce it locally on a maintainer's machine
Calling pylint with more than one dir or package leads to new entries in sys.path. This will hide import-errors of modules that should not be reachable or can even hide other modules with the same name in another folder (or python internals like the logging module as shown in this example).
This minimal example shows two problems.
Steps to reproduce
python -m pylint --errors-only a_lib another_lib
Current behavior
Expected behavior
pylint --version output
Probably related to: #2258
The text was updated successfully, but these errors were encountered: