-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
PEP420 cyclic-import
false positive
#7959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@Pierre-Sassoulas the reproduction repo linked did not work as reproduction for you? |
I did not have the time to try to reproduce, sorry about that. Multiple files reproducer and full repo reproducer takes longer to label and triage, but I usually reproduce when triaging and before labelling so the 'needs reproduction' label is never applied for most issue. |
@Pierre-Sassoulas I've looked a bit deeper into the origins of the issue, it's more or less clear that with |
A side note, that my original use case is with |
Thank you for looking into this !
That could be the huge merge request where the |
Thanks, I'll look into the discussion! Yet from what I can see from the sources thus far, a PR is needed to introduce source root(s) concept to the configuration files to produce package names relative to those roots when the file is discovered under those roots while doing nothing to the package names if it's outside. The default list of source roots would be empty, not affecting the default behavior while fixing the issue for me :) |
Seems like it commonly produces false positives: pylint-dev/pylint#5168 pylint-dev/pylint#7959
Bug description
https://github.com/alexey-pelykh/reproduce-pylint-pep420-cyclic-import-false-positive
pylint
thinks thatlogging
is the package name while due to implicit namespace, it'ssome.package.logging
.Configuration
Command used
./venv/bin/pylint --recursive=y src ./venv/bin/pylint $(find src -name '*.py')
Pylint output
Expected behavior
No cyclic import detected
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: