From d033cba5ea1dbe457cc87a6d899aa4658054c9c9 Mon Sep 17 00:00:00 2001 From: Pietro De Nicolao Date: Fri, 27 Aug 2021 11:41:06 +0200 Subject: [PATCH] style: linting --- poetry/installation/chooser.py | 4 +++- tests/installation/test_chooser.py | 6 +----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/poetry/installation/chooser.py b/poetry/installation/chooser.py index d49a183d9f8..0e97d0ea3e7 100644 --- a/poetry/installation/chooser.py +++ b/poetry/installation/chooser.py @@ -111,7 +111,9 @@ def _get_links(self, package): # type: (Package) -> List[Link] if links and not selected_links: raise RuntimeError( - "Retrieved digest for link {}({}) not in poetry.lock metadata {}".format(link.filename, h, hashes) + "Retrieved digest for link {}({}) not in poetry.lock metadata {}".format( + link.filename, h, hashes + ) ) return selected_links diff --git a/tests/installation/test_chooser.py b/tests/installation/test_chooser.py index 79588dd2698..7586d27c4e5 100644 --- a/tests/installation/test_chooser.py +++ b/tests/installation/test_chooser.py @@ -199,11 +199,7 @@ def test_chooser_chooses_distributions_that_match_the_package_hashes( @pytest.mark.parametrize("source_type", ["", "legacy"]) def test_chooser_throws_an_error_if_package_hashes_do_not_match( - env, - mock_pypi, - mock_legacy, - source_type, - pool, + env, mock_pypi, mock_legacy, source_type, pool, ): chooser = Chooser(pool, env)