diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5efdf881..2bc9db59 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.1.1 hooks: - id: black - repo: https://github.com/collective/zpretty @@ -32,7 +32,7 @@ repos: # """ ## - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 diff --git a/plone/app/layout/viewlets/content.py b/plone/app/layout/viewlets/content.py index efc8d4e4..785c8c04 100644 --- a/plone/app/layout/viewlets/content.py +++ b/plone/app/layout/viewlets/content.py @@ -478,21 +478,21 @@ def morphVersionDataToHistoryFormat(vdata, version_id): ) if can_diff: if version_id > 0: - info[ - "diff_previous_url" - ] = "{}/@@history?one={}&two={}&_authenticator={}".format( - context_url, - version_id, - version_id - 1, - token, + info["diff_previous_url"] = ( + "{}/@@history?one={}&two={}&_authenticator={}".format( + context_url, + version_id, + version_id - 1, + token, + ) ) if not rt.isUpToDate(context, version_id): - info[ - "diff_current_url" - ] = "{}/@@history?one=current&two={}&_authenticator={}".format( - context_url, - version_id, - token, + info["diff_current_url"] = ( + "{}/@@history?one=current&two={}&_authenticator={}".format( + context_url, + version_id, + token, + ) ) if can_revert: info["revert_url"] = "%s/revertversion" % context_url