From 5ce2db399878440d2b666f1fa3484c3a94ac1861 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:33:20 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.12.1 → 24.1.1](https://github.com/psf/black/compare/23.12.1...24.1.1) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From fb20a6a6b9cfd780b74358ccba26498074d31ad6 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 5 Feb 2024 18:38:16 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- plone/cachepurging/tests/test_rewrite.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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}"