Browse Source

Update pre-commit

pull/487/head
Simon Conseil 3 years ago
parent
commit
0d70f3a1d0
  1. 4
      .pre-commit-config.yaml
  2. 1
      pyproject.toml
  3. 3
      tests/test_gallery.py

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

1
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

3
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 '

Loading…
Cancel
Save