False negative import-error
when the package imported is one of pylint's dependency
#10339
Labels
False Negative 🦋
No message is emitted but something is wrong with the code
High effort 🏋
Difficult solution or problem to solve
Needs design proposal 🔒
This is a huge feature, some discussion should happen before a PR is proposed
Bug description
When linting with pylint one must install pylint in its environment to be able to lint. So when pylint is providing a dependency that is not set in the project packaging, pylint does not raise import-error appropriately. For example for yaml:
Then in an environment where pyyaml is not available this will fail.
Command used
Pylint output
No error.
Expected behavior
E401: Unable to import yaml
Pylint version
The text was updated successfully, but these errors were encountered: