From 07d7d457b9d2c5c9a23a9518475aed1a97e43a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Alexandre?= <59508016+upALX@users.noreply.github.com> Date: Thu, 10 Apr 2025 19:46:28 -0300 Subject: [PATCH] Passing for the PR guidelines --- pipreqs/pipreqs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pipreqs/pipreqs.py b/pipreqs/pipreqs.py index 23e2d9e..0a05aa6 100644 --- a/pipreqs/pipreqs.py +++ b/pipreqs/pipreqs.py @@ -278,7 +278,10 @@ def get_locally_installed_packages(use_venv_packages: bool, encoding="utf-8"): break else: if use_venv_packages and not venv_path: - logging.warning("You specified to use only the virtual environment packages, but no virtual environment is currently active.") + logging.warning( + "You specified to use only the virtual environment packages, " + "but no virtual environment is currently active." + ) paths_to_search = sys.path for path in paths_to_search: @@ -319,7 +322,7 @@ def get_locally_installed_packages(use_venv_packages: bool, encoding="utf-8"): return packages -def get_import_local(imports, use_venv_packages: Optional[bool]=False, encoding="utf-8"): +def get_import_local(imports, use_venv_packages: Optional[bool] = False, encoding="utf-8"): local = get_locally_installed_packages(use_venv_packages=use_venv_packages) result = [] for item in imports: