-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Pylint 2.5 fails to parse modules without init.py while 2.4.4 works fine.
I found nothing in the changelog regarding this, so I guess it's a bug.
Steps to reproduce
- create a python module without init.py
- run
pylint --disable=C,R ${MODULE_NAME}
Current behavior
raises:
************* Module ${MODULE_NAME}
${MODULE_NAME}/__init__.py:1:0: F0010: error while code parsing: Unable to load file ${MODULE_NAME}/__init__.py:
[Errno 2] No such file or directory: '${MODULE_NAME}/__init__.py' (parse-error)
Expected behavior
No error expected since init.py are optional since python 3.4+
pylint --version output
pylint==2.5.0
python==3.6.10
y4n9squared, maxnelso, luislew, nwalters512, corymccarty and 15 more