diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d56610b..1b15f67 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,8 +11,8 @@ repos: - id: trailing-whitespace exclude: ".*(galleria|photoswipe|jquery|leaflet).*$" -- repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.8.3 +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.9.7 hooks: - id: ruff args: [ --fix, --show-fixes, --exit-non-zero-on-fix ] diff --git a/src/sigal/image.py b/src/sigal/image.py index f7d154b..c684b43 100644 --- a/src/sigal/image.py +++ b/src/sigal/image.py @@ -76,8 +76,7 @@ def _read_image(file_path): for w in caught_warnings: logger.warning( - f"Pillow reported a warning for file {file_path}\n" - f"{w.category}: {w.message}" + f"Pillow reported a warning for file {file_path}\n{w.category}: {w.message}" ) return im