diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index efbc8fd..5a36651 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,13 +6,13 @@ repos: args: ["--py37-plus"] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 25.12.0 + rev: 26.3.1 hooks: - id: black args: ["--target-version", "py37"] - repo: https://github.com/PyCQA/isort - rev: 7.0.0 + rev: 8.0.1 hooks: - id: isort diff --git a/gutenberg-metadata.py b/gutenberg-metadata.py index 2d73c4d..dec9990 100644 --- a/gutenberg-metadata.py +++ b/gutenberg-metadata.py @@ -4,6 +4,7 @@ https://github.com/c-w/Gutenberg Tested on Python 3.10. """ + import argparse import json import sys diff --git a/populate-cache.py b/populate-cache.py index 23ea22d..38a52ad 100644 --- a/populate-cache.py +++ b/populate-cache.py @@ -3,6 +3,7 @@ Populate the gutenberg cache From https://github.com/c-w/gutenberg#looking-up-meta-data """ + from gutenberg.acquire import get_metadata_cache print("Warning: this is slow...")