From f1694746352f62628f14c097a075588c612a2724 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 01:28:26 +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/asottile/pyupgrade: v3.10.1 → v3.14.0](https://github.com/asottile/pyupgrade/compare/v3.10.1...v3.14.0) - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) - [github.com/codespell-project/codespell: v2.2.5 → v2.2.6](https://github.com/codespell-project/codespell/compare/v2.2.5...v2.2.6) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d9dc31c..c633c52f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ ci: repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.10.1 + rev: v3.14.0 hooks: - id: pyupgrade args: [--py38-plus] @@ -16,7 +16,7 @@ repos: hooks: - id: isort - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/collective/zpretty @@ -44,7 +44,7 @@ repos: # """ ## - repo: https://github.com/codespell-project/codespell - rev: v2.2.5 + rev: v2.2.6 hooks: - id: codespell additional_dependencies: From d8ca33937c51e8e2b8963ffed787615fa1ab1a7f Mon Sep 17 00:00:00 2001 From: Gil Forcada Codinachs Date: Tue, 3 Oct 2023 16:42:37 +0200 Subject: [PATCH 2/2] chore: typos --- plone/app/discussion/conversation.py | 6 +++--- plone/app/discussion/design.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plone/app/discussion/conversation.py b/plone/app/discussion/conversation.py index 9292e3fd..abb35c51 100644 --- a/plone/app/discussion/conversation.py +++ b/plone/app/discussion/conversation.py @@ -180,9 +180,9 @@ def addComment(self, comment): self._children[reply_to].insert(id) # Add the annotation if not already done - annotions = IAnnotations(self.__parent__) - if ANNOTATION_KEY not in annotions: - annotions[ANNOTATION_KEY] = aq_base(self) + annotations = IAnnotations(self.__parent__) + if ANNOTATION_KEY not in annotations: + annotations[ANNOTATION_KEY] = aq_base(self) # Notify that the object is added. The object must here be # acquisition wrapped or the indexing will fail. diff --git a/plone/app/discussion/design.txt b/plone/app/discussion/design.txt index 4e76c1d4..11c75bd0 100644 --- a/plone/app/discussion/design.txt +++ b/plone/app/discussion/design.txt @@ -104,7 +104,7 @@ can be generated from this as well, using the helper class in plone.app.registry. Note that some settings, notably those to do with permissions and workflow, -will need to be wired up as custom form fields with custom data mangers +will need to be wired up as custom form fields with custom data managers or similar. Workflow and permissions