Skip to content

Commit

Permalink
ignore Lib
Browse files Browse the repository at this point in the history
  • Loading branch information
bagel897 committed Nov 2, 2023
1 parent 3152d0a commit 8e09274
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rope/contrib/autoimport/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ def get_package_tuple(
package_type: PackageType
if package_name.startswith(".") or package_name == "__pycache__":
return None
if "site-packages" in package_name:
return None
if package_name.endswith((".egg-info", ".dist-info")):
return None
if package_path.is_file():
Expand Down
2 changes: 1 addition & 1 deletion ropetest/contrib/autoimport/deptest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def project(request, tmp_path: Path) -> Iterable[Project]:

@pytest.fixture
def autoimport(project) -> Iterable[AutoImport]:
autoimport = AutoImport(project)
autoimport = AutoImport(project, memory=True)
autoimport.generate_modules_cache()
yield autoimport
autoimport.close()
Expand Down

0 comments on commit 8e09274

Please sign in to comment.