Open
Description
Bug description
You get different results from pylint when the folders are called dataset
vs train
.
On a clean environment, if you run:
mkdir pylint_test
cd pylint_test
mkdir dataset
touch dataset/__init__.py
mkdir dataset_123
echo "# pylint: disable=missing-docstring\nfrom collections import Counter" > dataset_123/a.py
PYTHONPATH=. pylint --recursive=y .
mv dataset train
mv dataset_123 train_123
PYTHONPATH=. pylint --recursive=y .
Configuration
No response
Command used
pylint --recursive=y .
Pylint output
First execution has empty output.
Second execution has the expected:
************* Module a
train_123/a.py:2:0: W0611: Unused Counter imported from collections (unused-import)
------------------------------------------------------------------
Your code has been rated at 0.00/10 (previous run: 0.00/10, +0.00)
Expected behavior
Regardless of the folder name, expect both versions to return the same output.
Pylint version
pylint 3.0.2
astroid 3.0.1
Python 3.11.5 (main, Sep 11 2023, 08:31:25) [Clang 14.0.6 ]
OS / Environment
Apple Mac M1
Additional dependencies
No response