From 50e00278899c8246ee3359ca525afd35d50ee518 Mon Sep 17 00:00:00 2001 From: jaimergp Date: Thu, 24 Aug 2023 18:00:25 +0200 Subject: [PATCH] pre-commit --- menuinst/api.py | 6 ++++-- tests/test_backwards_compatibility.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/menuinst/api.py b/menuinst/api.py index c988528a..27f9ae4e 100644 --- a/menuinst/api.py +++ b/menuinst/api.py @@ -131,7 +131,9 @@ def _process_all( return results -def _install_adapter(path: PathLike, remove: bool = False, prefix: PathLike = DEFAULT_PREFIX, **kwargs): +def _install_adapter( + path: PathLike, remove: bool = False, prefix: PathLike = DEFAULT_PREFIX, **kwargs +): """ This function is only here as a legacy adapter for menuinst v1.x. Please use `menuinst.api` functions instead. @@ -163,4 +165,4 @@ def _install_adapter(path: PathLike, remove: bool = False, prefix: PathLike = DE if remove: remove(metadata, target_prefix=prefix, **kwargs) else: - install(metadata, target_prefix=prefix, **kwargs) \ No newline at end of file + install(metadata, target_prefix=prefix, **kwargs) diff --git a/tests/test_backwards_compatibility.py b/tests/test_backwards_compatibility.py index c5ac10e0..20bb4d77 100644 --- a/tests/test_backwards_compatibility.py +++ b/tests/test_backwards_compatibility.py @@ -6,7 +6,7 @@ @pytest.mark.skipif(os.name != "nt", reason="Windows only") def test_import_paths(): "These import paths are/were used by conda <=23.7.2. Ensure they still work." - from menuinst import install # noqa + from menuinst import install # noqa from menuinst.knownfolders import FOLDERID, get_folder_path # noqa from menuinst.win32 import dirs_src # noqa from menuinst.winshortcut import create_shortcut # noqa