From 0d70f3a1d02847a3d4863d1aed1d62053432e9d1 Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Sun, 11 Dec 2022 18:05:41 +0100 Subject: [PATCH] Update pre-commit --- .pre-commit-config.yaml | 4 ++-- pyproject.toml | 1 - tests/test_gallery.py | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0c01174..5d5fdd7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,7 +11,7 @@ repos: exclude: ".*(galleria|photoswipe|jquery|leaflet).*$" - repo: https://github.com/asottile/pyupgrade - rev: v3.2.2 + rev: v3.3.1 hooks: - id: pyupgrade args: ["--py38-plus"] @@ -22,7 +22,7 @@ repos: - id: isort - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black diff --git a/pyproject.toml b/pyproject.toml index a8a0a04..b740522 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,5 +8,4 @@ write_to = "src/sigal/version.py" [tool.black] line-length = 88 target-version = ['py38'] -preview = true skip-string-normalization = true diff --git a/tests/test_gallery.py b/tests/test_gallery.py index 6159e58..e823a24 100644 --- a/tests/test_gallery.py +++ b/tests/test_gallery.py @@ -133,8 +133,7 @@ def test_media_iptc_override(settings): == 'Haemostratulus clouds over Canberra - 2005-12-28 at 03-25-07' ) assert ( - img_no_md.description - == '"Haemo" because they look like haemoglobin ' + img_no_md.description == '"Haemo" because they look like haemoglobin ' 'cells and "stratulus" because I can\'t work out whether ' 'they\'re Stratus or Cumulus clouds.\nWe\'re driving down ' 'the main drag in Canberra so it\'s Parliament House that '