-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Poly check can't understand pillow dependency #107
Comments
Thank you for reporting @BeRT2me! This is probably because the |
@BeRT2me I believe I have fixed this issue and just released |
@DavidVujic This is great, thank you! Another one I've discovered are
And all have the import Also, the |
Yes, these imports are probably too different from the dependency names, and the builtin difflib that is used in the source code won't recognize them properly. I think I will add a possibility to ignore, or to make hints, to the |
Yeah, there are an unfortunate number of libraries that don't align their name and imports. Although using difflib is a super interesting approach, I do worry about false positives. Maybe just giving the ability to map library names to a list of known imports wouldn't be clearer - and eliminate those false positives. Something like this in the
|
Good ideas! ⭐ I plan to work on this during next week. |
Speaking of false positives, |
Hi @BeRT2me, There's a new version of the tool out! v1.9.0 introduces two new options to the
Usage:
Usage: This will treat I hope this will help and make the commands more accurate! There will likely be more cases where the commands will fail on identifying libraries, but I think these options will cover many use cases. The |
Describe the bug
poetry poly check
returns🤔 Cannot locate PIL in my_package
To Reproduce
Steps to reproduce the behavior:
from PIL import Image
pillow = "^10.0.0"
poetry poly check
Error Log
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
Additional context
I thought it was interesting that it does find
scikit-image
even though its import isskimage
. Though I guess that was fixed #83The text was updated successfully, but these errors were encountered: