Skip to content

Commit

Permalink
Merge pull request #5 from sourcery-ai-bot/master
Browse files Browse the repository at this point in the history
Sourcery Starbot ⭐ refactored jorenham/jax_pep503
  • Loading branch information
jorenham authored Jun 9, 2023
2 parents 6cb6d50 + be2aac1 commit 45c3729
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions jax_pep503/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ async def _build_index(html_dir: pathlib.Path = HTML_DIR):
url_paths = ['/']

package_links = await get_package_links()
for package in package_links:
url_paths.append(f'/{package}/')

url_paths.extend(f'/{package}/' for package in package_links)
for url_path in url_paths:
response = client.get(url_path)
response.raise_for_status()
Expand Down
8 changes: 4 additions & 4 deletions jax_pep503/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@


async def get_package_links() -> _Links:
links = {}
for package_name in (await get_links()):
links[package_name] = {'href': f'{package_name}/'}
return links
return {
package_name: {'href': f'{package_name}/'}
for package_name in (await get_links())
}


async def get_package_release_links(package_name: str) -> _Links:
Expand Down

0 comments on commit 45c3729

Please sign in to comment.