From cf3b544098767bbece0d96b629e7baa7a74c05bb Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 Jul 2026 21:05:48 +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/PyCQA/docformatter: v1.7.7 → v1.7.8](https://github.com/PyCQA/docformatter/compare/v1.7.7...v1.7.8)
- [github.com/astral-sh/ruff-pre-commit: v0.15.9 → v0.15.20](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.9...v0.15.20)
- [github.com/rbubley/mirrors-prettier: v3.8.1 → v3.9.4](https://github.com/rbubley/mirrors-prettier/compare/v3.8.1...v3.9.4)
- [github.com/Riverside-Healthcare/djLint: v1.36.4 → v1.40.3](https://github.com/Riverside-Healthcare/djLint/compare/v1.36.4...v1.40.3)
---
.pre-commit-config.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 339e5d7e..ba27087b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -3,7 +3,7 @@ ci:
autoupdate_schedule: "quarterly"
repos:
- repo: https://github.com/PyCQA/docformatter
- rev: v1.7.7
+ rev: v1.7.8
hooks:
- id: docformatter
args: ["--in-place", "--pre-summary-newline", "--make-summary-multi"]
@@ -19,7 +19,7 @@ repos:
]
exclude: ".*(.fits|.fts|.fit|.txt|tca.*|extern.*|.rst|.md|docs/conf.py)$"
- repo: https://github.com/astral-sh/ruff-pre-commit
- rev: "v0.15.9"
+ rev: "v0.15.20"
hooks:
- id: ruff
args: ["--fix", "--unsafe-fixes"]
@@ -44,11 +44,11 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/rbubley/mirrors-prettier
- rev: v3.8.1
+ rev: v3.9.4
hooks:
- id: prettier
- repo: https://github.com/Riverside-Healthcare/djLint
- rev: v1.36.4
+ rev: v1.40.3
hooks:
- id: djlint-jinja
types_or: ["html"]
From f6831e6c995f1f6ef990413bb9c13ca0df1f3c02 Mon Sep 17 00:00:00 2001
From: "pre-commit-ci[bot]"
<66853113+pre-commit-ci[bot]@users.noreply.github.com>
Date: Mon, 6 Jul 2026 21:06:32 +0000
Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---
src/ablog/blog.py | 5 ++---
src/ablog/post.py | 1 -
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/ablog/blog.py b/src/ablog/blog.py
index 3a45d73e..f9d2069f 100644
--- a/src/ablog/blog.py
+++ b/src/ablog/blog.py
@@ -299,8 +299,8 @@ def html_builder_write_doc(self, docname, doctree, img_url=False):
Part of :meth:`sphinx.builders.html.StandaloneHTMLBuilder.write_doc` method
used to convert *doctree* to HTML.
- Extra argument `img_url` enables conversion of `
` source paths to
- fully qualified URLs based on `blog_baseurl`.
+ Extra argument `img_url` enables conversion of `
` source paths
+ to fully qualified URLs based on `blog_baseurl`.
"""
# Source of images
img_folder = "_images"
@@ -408,7 +408,6 @@ def to_html(self, pagename, fulltext=False, drop_h1=True, img_url=False):
`img_url` enables conversion of `
` source paths to fully
qualified URLs based on `blog_baseurl`.
"""
-
doctree = new_document("")
if fulltext:
deepcopy = self.doctree.deepcopy()
diff --git a/src/ablog/post.py b/src/ablog/post.py
index c68bcea4..ca292e8c 100644
--- a/src/ablog/post.py
+++ b/src/ablog/post.py
@@ -212,7 +212,6 @@ def purge_posts(app, env, docname):
Remove post and reference to it from the standard domain when its document
is removed or changed.
"""
-
if hasattr(env, "ablog_posts"):
env.ablog_posts.pop(docname, None)
filename = os.path.split(docname)[1]