Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #221

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 9 additions & 9 deletions plone/app/discussion/browser/controlpanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,17 @@ def updateFields(self):
self.fields["globally_enabled"].widgetFactory = SingleCheckBoxFieldWidget
self.fields["moderation_enabled"].widgetFactory = SingleCheckBoxFieldWidget
self.fields["edit_comment_enabled"].widgetFactory = SingleCheckBoxFieldWidget
self.fields[
"delete_own_comment_enabled"
].widgetFactory = SingleCheckBoxFieldWidget
self.fields["delete_own_comment_enabled"].widgetFactory = (
SingleCheckBoxFieldWidget
)
self.fields["anonymous_comments"].widgetFactory = SingleCheckBoxFieldWidget
self.fields["show_commenter_image"].widgetFactory = SingleCheckBoxFieldWidget
self.fields[
"moderator_notification_enabled"
].widgetFactory = SingleCheckBoxFieldWidget
self.fields[
"user_notification_enabled"
].widgetFactory = SingleCheckBoxFieldWidget
self.fields["moderator_notification_enabled"].widgetFactory = (
SingleCheckBoxFieldWidget
)
self.fields["user_notification_enabled"].widgetFactory = (
SingleCheckBoxFieldWidget
)

def updateWidgets(self):
try:
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/browser/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
IDiscussion container for the context, from which traversal will continue
into an actual comment object.
"""

from plone.app.discussion.interfaces import IConversation
from zope.component import adapter
from zope.component import queryAdapter
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/browser/validator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Captcha validator, see captcha.txt for design notes.
"""

from Acquisition import aq_inner
from plone.app.discussion.interfaces import ICaptcha
from plone.app.discussion.interfaces import IDiscussionLayer
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

Also provide event handlers to actually catalog the comments.
"""

from plone.app.discussion.interfaces import IComment
from plone.app.discussion.interfaces import IConversation
from plone.app.event.base import DT
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/comment.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""The default comment class and factory.
"""

from AccessControl import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager
from Acquisition import aq_base
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/contentrules.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Content rules handlers
"""

from plone.app.discussion import _


Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
manipulating the comments directly in reply to a particular comment or at the
top level of the conversation.
"""

from .comment import Comment
from .interfaces import DISCUSSION_ANNOTATION_KEY as ANNOTATION_KEY
from .interfaces import IConversation
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/events.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
""" Custom discussion events
"""

from plone.app.discussion.interfaces import ICommentAddedEvent
from plone.app.discussion.interfaces import ICommentDeletedEvent
from plone.app.discussion.interfaces import ICommentModifiedEvent
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/interfaces.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Interfaces for plone.app.discussion
"""

from plone.app.discussion import _
from Products.CMFCore.interfaces import ISiteRoot
from Products.CMFCore.utils import getToolByName
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/tests/test_catalog.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test the plone.app.discussion catalog indexes
"""

from datetime import datetime
from datetime import timezone
from plone.app.discussion.interfaces import IConversation
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/tests/test_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

These test are only triggered when Plone 4 (and plone.testing) is installed.
"""

from ..testing import PLONE_APP_DISCUSSION_FUNCTIONAL_TESTING # noqa
from plone.testing import layered

Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/tests/test_indexers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test for the plone.app.discussion indexers
"""

from .. import catalog
from ..interfaces import IConversation
from ..testing import PLONE_APP_DISCUSSION_INTEGRATION_TESTING # noqa
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/tests/test_workflow.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Test plone.app.discussion workflow and permissions.
"""

from ..interfaces import IConversation
from ..interfaces import IDiscussionLayer
from ..testing import PLONE_APP_DISCUSSION_INTEGRATION_TESTING
Expand Down
1 change: 1 addition & 0 deletions plone/app/discussion/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

BBB support for the old portal_discussion is provided in the bbb package.
"""

from .interfaces import IComment
from .interfaces import ICommentingTool
from OFS.SimpleItem import SimpleItem
Expand Down