Skip to content

Commit

Permalink
Merge pull request #93 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 cb6a8cc + 1ff6cfa commit 0845568
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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
8 changes: 4 additions & 4 deletions src/plone/app/testing/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,10 +336,10 @@ def setUp(self):
# re-import ZCML files after tear-down
name = self.__name__ if self.__name__ is not None else "not-named"
contextName = f"PloneSandboxLayer-{name}"
self[
"configurationContext"
] = configurationContext = zca.stackConfigurationContext(
self.get("configurationContext"), name=contextName
self["configurationContext"] = configurationContext = (
zca.stackConfigurationContext(
self.get("configurationContext"), name=contextName
)
)

with ploneSite() as portal:
Expand Down

0 comments on commit 0845568

Please sign in to comment.