You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a race condition in the cyclic-import checker. When pylint is executed with multiple jobs, then it can miss cyclic imports on fast machines.
[MAIN]# With this configuration the issue is foundjobs=1
# With this configuration it is missed# jobs=2
Command used
pylint example/
Pylint output
Running with jobs=1:
$ pylint example
************* Module a
example/a.py:1:0: R0401: Cyclic import (a -> b) (cyclic-import)
------------------------------------------------------------------
Your code has been rated at 5.00/10 (previous run: 5.00/10, +0.00)
Running with jobs=2:
$ pylint example
-------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 5.00/10, +5.00)
Expected behavior
Changing the number of jobs should not affect the result.
Bug description
There seems to be a race condition in the cyclic-import checker. When pylint is executed with multiple jobs, then it can miss cyclic imports on fast machines.
File
example/a.py
:File
example/b.py
Configuration
Command used
Pylint output
Expected behavior
Changing the number of jobs should not affect the result.
Pylint version
OS / Environment
Problem was observed on Arch Linux, Ubuntu 20.04 and Windows 10
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: