From c00e067af4bfc23d6815f4123e03743d29f67368 Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Mon, 30 Sep 2024 09:02:01 +0200 Subject: [PATCH] pre-commit --- .pre-commit-config.yaml | 2 +- src/sigal/writer.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3c4ad1d6..1a945320 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: exclude: ".*(galleria|photoswipe|jquery|leaflet).*$" - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.5.2 + rev: v0.6.8 hooks: - id: ruff args: [ --fix, --show-fixes, --exit-non-zero-on-fix ] diff --git a/src/sigal/writer.py b/src/sigal/writer.py index 9f99eca9..cbb361fb 100644 --- a/src/sigal/writer.py +++ b/src/sigal/writer.py @@ -139,7 +139,9 @@ def generate_context(self, album): "index_title": self.index_title, "settings": self.settings, "sigal_link": sigal_link, - "generated_timestamp": datetime.now().strftime(self.settings['datetime_format']), + "generated_timestamp": datetime.now().strftime( + self.settings["datetime_format"] + ), "theme": { "name": os.path.basename(self.theme), "url": url_from_path(os.path.relpath(self.theme_path, album.dst_path)),