From 2de959458d449b8990c5ac45511fb6cf7c9826fb Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 19:43:24 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black-pre-commit-mirror: 25.12.0 → 26.3.1](https://github.com/psf/black-pre-commit-mirror/compare/25.12.0...26.3.1) - [github.com/PyCQA/isort: 7.0.0 → 8.0.1](https://github.com/PyCQA/isort/compare/7.0.0...8.0.1) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From d40a11ea4428222ff7dc374f0d1fc760369249b3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2026 19:45:43 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- gutenberg-metadata.py | 1 + populate-cache.py | 1 + 2 files changed, 2 insertions(+) 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...")