Skip to content

Commit

Permalink
Merge pull request #43 from plone/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate

[ci-skip]
  • Loading branch information
gforcada authored Feb 5, 2024
2 parents 01083d9 + fb20a6a commit 784d986
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,7 +32,7 @@ repos:
# """
##
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8

Expand Down
18 changes: 10 additions & 8 deletions plone/cachepurging/tests/test_rewrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 784d986

Please sign in to comment.