-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Bug 🪲False Negative 🦋No message is emitted but something is wrong with the codeNo message is emitted but something is wrong with the codeNeeds investigation 🔬A bug or crash where it's not immediately obvious what is happenningA bug or crash where it's not immediately obvious what is happenningmultiprocessing
Description
Bug description
With the following file system and no explicit pylint
configuration:
# a.py
from .b import *
# b.py
from .c import *
# c.py
from .a import *
Running pylint
:
$ PYTHONPATH=. pylint --score=no --disable=C0114,W0614,W0401 -j0 .
************* Module b
b.py:1:0: R0401: Cyclic import (a -> b -> c) (cyclic-import)
$ PYTHONPATH=. pylint --score=no --disable=C0114,W0614,W0401 -j1 .
$ PYTHONPATH=. pylint --score=no --disable=C0114,W0614,W0401 -j2 .
************* Module b
b.py:1:0: R0401: Cyclic import (a -> b -> c) (cyclic-import)
Potentially related issues:
#9168
Configuration
None
Expected behavior
Would expect all three to give the same output; worst-case scenario, I expect -j1
to
catch all issues, while running with parallelism may miss a few.
Pylint version
pylint 3.3.2
astroid 3.3.6
Python 3.13.0 (main, Oct 16 2024, 08:05:40) [Clang 18.1.8 ]
# however, this issue persists across a large variety of pylint and Python version combinations
OS / Environment
Apple Silicon
MacOS 15.1.1
Same results on an Ubuntu container.
Metadata
Metadata
Assignees
Labels
Bug 🪲False Negative 🦋No message is emitted but something is wrong with the codeNo message is emitted but something is wrong with the codeNeeds investigation 🔬A bug or crash where it's not immediately obvious what is happenningA bug or crash where it's not immediately obvious what is happenningmultiprocessing