Update pre-commit

This commit is contained in:
Simon Conseil
2022-12-11 18:05:41 +01:00
parent 9cd25ea1ee
commit 0d70f3a1d0
3 changed files with 3 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ repos:
exclude: ".*(galleria|photoswipe|jquery|leaflet).*$" exclude: ".*(galleria|photoswipe|jquery|leaflet).*$"
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.2.2 rev: v3.3.1
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: ["--py38-plus"] args: ["--py38-plus"]
@@ -22,7 +22,7 @@ repos:
- id: isort - id: isort
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.10.0 rev: 22.12.0
hooks: hooks:
- id: black - id: black

View File

@@ -8,5 +8,4 @@ write_to = "src/sigal/version.py"
[tool.black] [tool.black]
line-length = 88 line-length = 88
target-version = ['py38'] target-version = ['py38']
preview = true
skip-string-normalization = true skip-string-normalization = true

View File

@@ -133,8 +133,7 @@ def test_media_iptc_override(settings):
== 'Haemostratulus clouds over Canberra - 2005-12-28 at 03-25-07' == 'Haemostratulus clouds over Canberra - 2005-12-28 at 03-25-07'
) )
assert ( assert (
img_no_md.description img_no_md.description == '"Haemo" because they look like haemoglobin '
== '"Haemo" because they look like haemoglobin '
'cells and "stratulus" because I can\'t work out whether ' 'cells and "stratulus" because I can\'t work out whether '
'they\'re Stratus or Cumulus clouds.\nWe\'re driving down ' 'they\'re Stratus or Cumulus clouds.\nWe\'re driving down '
'the main drag in Canberra so it\'s Parliament House that ' 'the main drag in Canberra so it\'s Parliament House that '