Update pre-commit
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 '
|
||||||
|
|||||||
Reference in New Issue
Block a user