X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/3ac97a3084544d19ffe461a06e8ec6582eccf85d..a669b64091c149132f4e234abd230f7b33d692e8:/gallery/gallery.py diff --git a/gallery/gallery.py b/gallery/gallery.py index 87a305f..6b42ec3 100755 --- a/gallery/gallery.py +++ b/gallery/gallery.py @@ -127,7 +127,10 @@ DEFAULT_SLICE = slice(None) # for flake8 def download_and_extract_top_packages( - directory: Path, days: Days = 365, workers: int = 8, limit: slice = DEFAULT_SLICE, + directory: Path, + days: Days = 365, + workers: int = 8, + limit: slice = DEFAULT_SLICE, ) -> Generator[Path, None, None]: with ThreadPoolExecutor(max_workers=workers) as executor: bound_downloader = partial(get_package, version=None, directory=directory) @@ -138,7 +141,7 @@ def download_and_extract_top_packages( def git_create_repository(repo: Path) -> None: subprocess.run(["git", "init"], cwd=repo) - git_add_and_commit(msg="Inital commit", repo=repo) + git_add_and_commit(msg="Initial commit", repo=repo) def git_add_and_commit(msg: str, repo: Path) -> None: @@ -268,8 +271,7 @@ def main() -> None: "-v", "--version", help=( - "Version for given PyPI package. " - "Will be discarded if used with -t option." + "Version for given PyPI package. Will be discarded if used with -t option." ), ) parser.add_argument(