Browse Source

pre-commit

pull/533/head
Simon Conseil 1 year ago
parent
commit
74fb735e9e
  1. 4
      .pre-commit-config.yaml
  2. 3
      src/sigal/image.py

4
.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 ]

3
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

Loading…
Cancel
Save