We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b66c699 commit 9854bc6Copy full SHA for 9854bc6
rope/contrib/autoimport/utils.py
@@ -49,7 +49,11 @@ def get_package_source(
49
"""Detect the source of a given package. Rudimentary implementation."""
50
if name in sys.builtin_module_names:
51
return Source.BUILTIN
52
- if project is not None and project.address in str(package):
+ if (
53
+ project is not None
54
+ and project.address in str(package)
55
+ and not project.is_ignored(project.get_file(str(package)))
56
+ ):
57
return Source.PROJECT
58
if "site-packages" in package.parts:
59
return Source.SITE_PACKAGE
0 commit comments