Skip to content

Commit

Permalink
style: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrodn committed Aug 27, 2021
1 parent 8956a0c commit d033cba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 3 additions & 1 deletion poetry/installation/chooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions tests/installation/test_chooser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d033cba

Please sign in to comment.