diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aa2a758..e13b866 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/cachepurging/tests/test_rewrite.py b/plone/cachepurging/tests/test_rewrite.py index 8261438..82f7587 100644 --- a/plone/cachepurging/tests/test_rewrite.py +++ b/plone/cachepurging/tests/test_rewrite.py @@ -41,14 +41,16 @@ def _prepareVHMRequest( path, ) self.request["SERVER_URL"] = f"{protocol}://{domain}" - self.request[ - "PATH_INFO" - ] = "/VirtualHostBase/%s/%s:80%s/" "VirtualHostRoot%s%s" % ( - protocol, - domain, - root, - translatedPrefix, - path, + self.request["PATH_INFO"] = ( + "/VirtualHostBase/%s/%s:80%s/" + "VirtualHostRoot%s%s" + % ( + protocol, + domain, + root, + translatedPrefix, + path, + ) ) self.request["VIRTUAL_URL"] = f"{protocol}://{domain}{path}"