Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
shidenko97 committed Oct 16, 2022
1 parent 4bd6e4d commit c9b220a
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions pypisearch/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

class Search:
"""Main search process instance."""

pypi_search_url = "https://pypi.org/search/?q={query}&page={page}"

def __init__(
Expand Down Expand Up @@ -51,15 +52,13 @@ def download_data(self, *, query: str, page: int) -> List[ResultItem]:
def tabulated_result(self) -> str:
"""Returns tabulated list of results."""

return (
tabulate.tabulate(
return tabulate.tabulate(
[
[
[
f"{item.name} ({item.version})",
f"{item.installed_description}{item.description}",
]
for item in self.result
],
tablefmt="plain",
)
f"{item.name} ({item.version})",
f"{item.installed_description}{item.description}",
]
for item in self.result
],
tablefmt="plain",
)

0 comments on commit c9b220a

Please sign in to comment.