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 #2137

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
hooks:
- id: sync-pre-commit-deps
- repo: https://github.com/peterdemin/pip-compile-multi
rev: v2.6.4
rev: v2.7.1
hooks:
- id: pip-compile-multi-verify
files: ^requirements/.*\.(in|txt)$
Expand All @@ -50,18 +50,18 @@ repos:
]
files: ^requirements/.*\.txt$
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: ['--keep-runtime-typing', '--py311-plus']
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.3
rev: v0.8.4
hooks:
- id: ruff
args: ['--fix', '--exit-non-zero-on-fix']
- id: ruff-format
- repo: https://github.com/PyCQA/pylint
rev: v3.3.1
rev: v3.3.2
hooks:
- id: pylint
args: [
Expand All @@ -73,7 +73,7 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/fredrikaverpil/creosote
rev: v3.1.0
rev: v3.2.0
hooks:
- id: creosote
- repo: https://github.com/shellcheck-py/shellcheck-py
Expand Down Expand Up @@ -124,7 +124,7 @@ repos:
- id: forbid-tabs
- id: remove-tabs
- repo: https://github.com/pycontribs/mirrors-prettier
rev: v3.3.3
rev: v3.4.2
hooks:
- id: prettier
- repo: https://github.com/ducminh-phan/reformat-gherkin
Expand Down
2 changes: 1 addition & 1 deletion funnel/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

__all__ = [
'CurrentAuth',
'add_auth_attribute',
'add_auth_anchor',
'add_auth_attribute',
'current_auth',
'request_has_auth',
]
Expand Down
2 changes: 1 addition & 1 deletion funnel/cli/lint/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

app.cli.add_command(lint)

__all__ = ['lint', 'jinja']
__all__ = ['jinja', 'lint']
2 changes: 1 addition & 1 deletion funnel/cli/periodic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

app.cli.add_command(periodic)

__all__ = ['periodic', 'mnrl', 'notification', 'stats']
__all__ = ['mnrl', 'notification', 'periodic', 'stats']
2 changes: 1 addition & 1 deletion funnel/cli/refresh/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@

app.cli.add_command(refresh)

__all__ = ['refresh', 'markdown']
__all__ = ['markdown', 'refresh']
18 changes: 9 additions & 9 deletions funnel/forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,15 @@
from .venue import VenueForm, VenuePrimaryForm, VenueRoomForm

__all__ = [
"FORM_SCHEMA_PLACEHOLDER",
"MSG_EMAIL_BLOCKED",
"MSG_EMAIL_INVALID",
"MSG_INCORRECT_OTP",
"MSG_INCORRECT_PASSWORD",
"MSG_NO_ACCOUNT",
"MSG_NO_LOGIN_SESSION",
"MSG_PHONE_BLOCKED",
"MSG_PHONE_NO_SMS",
"AccountDeleteForm",
"AccountForm",
"AccountSelectField",
Expand All @@ -148,7 +157,6 @@
"EmailAddressAvailable",
"EmailOtpForm",
"EmailPrimaryForm",
"FORM_SCHEMA_PLACEHOLDER",
"FollowForm",
"LabelForm",
"LabelOptionForm",
Expand All @@ -157,14 +165,6 @@
"LoginPasswordWeakException",
"LoginWithOtp",
"LogoutForm",
"MSG_EMAIL_BLOCKED",
"MSG_EMAIL_INVALID",
"MSG_INCORRECT_OTP",
"MSG_INCORRECT_PASSWORD",
"MSG_NO_ACCOUNT",
"MSG_NO_LOGIN_SESSION",
"MSG_PHONE_BLOCKED",
"MSG_PHONE_NO_SMS",
"ModeratorReportForm",
"NewEmailAddressForm",
"NewPhoneForm",
Expand Down
18 changes: 9 additions & 9 deletions funnel/forms/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@
)

__all__ = [
'PasswordForm',
'PasswordCreateForm',
'PasswordPolicyForm',
'PasswordResetRequestForm',
'PasswordResetForm',
'PasswordChangeForm',
'AccountForm',
'AccountDeleteForm',
'UsernameAvailableForm',
'AccountForm',
'EmailPrimaryForm',
'ModeratorReportForm',
'NewEmailAddressForm',
'NewPhoneForm',
'PasswordChangeForm',
'PasswordCreateForm',
'PasswordForm',
'PasswordPolicyForm',
'PasswordResetForm',
'PasswordResetRequestForm',
'PhonePrimaryForm',
'UsernameAvailableForm',
'pwned_password_validator',
'supported_locales',
'timezone_identifiers',
'pwned_password_validator',
]


Expand Down
2 changes: 1 addition & 1 deletion funnel/forms/auth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from .helpers import strip_filters

__all__ = [
'AuthClientForm',
'AuthClientCredentialForm',
'AuthClientForm',
'AuthClientPermissionEditForm',
'UserPermissionAssignForm',
]
Expand Down
6 changes: 3 additions & 3 deletions funnel/forms/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
)

__all__ = [
'EmailOtpForm',
'LoginForm',
'LoginPasswordResetException',
'LoginPasswordWeakException',
'LoginWithOtp',
'LoginForm',
'LogoutForm',
'RegisterWithOtp',
'OtpForm',
'EmailOtpForm',
'RegisterOtpForm',
'RegisterWithOtp',
]


Expand Down
4 changes: 2 additions & 2 deletions funnel/forms/notification.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
from ..transports import platform_transports

__all__ = [
'transport_labels',
'UnsubscribeForm',
'SetNotificationPreferenceForm',
'UnsubscribeForm',
'transport_labels',
]


Expand Down
4 changes: 2 additions & 2 deletions funnel/forms/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
from .organization import OrganizationForm

__all__ = [
'FollowForm',
'ProfileBannerForm',
'ProfileForm',
'ProfileLogoForm',
'ProfileBannerForm',
'ProfileTransitionForm',
'FollowForm',
]


Expand Down
10 changes: 5 additions & 5 deletions funnel/forms/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@

__all__ = [
'CfpForm',
'ProjectAssignParentForm',
'ProjectBannerForm',
'ProjectCfpTransitionForm',
'ProjectFeaturedForm',
'ProjectForm',
'ProjectLivestreamForm',
'ProjectNameForm',
'ProjectFeaturedForm',
'ProjectTransitionForm',
'ProjectBannerForm',
'ProjectRegisterForm',
'ProjectSponsorForm',
'ProjectTransitionForm',
'RsvpTransitionForm',
'SavedProjectForm',
'ProjectRegisterForm',
'ProjectAssignParentForm',
]

double_quote_re = re.compile(r'["“”]')
Expand Down
4 changes: 2 additions & 2 deletions funnel/forms/proposal.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
from .helpers import nullable_strip_filters, video_url_validator

__all__ = [
'ProposalForm',
'ProposalFeaturedForm',
'ProposalForm',
'ProposalLabelsAdminForm',
'ProposalLabelsForm',
'ProposalMemberForm',
'ProposalMoveForm',
'ProposalTransitionForm',
'ProposalMemberForm',
]

# FIXME: As labels are user generated content (UGC), these form constructors will
Expand Down
2 changes: 1 addition & 1 deletion funnel/geoip.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from geoip2.errors import AddressNotFoundError, GeoIP2Error
from geoip2.models import ASN, City

__all__ = ['GeoIP', 'geoip', 'GeoIP2Error', 'AddressNotFoundError']
__all__ = ['AddressNotFoundError', 'GeoIP', 'GeoIP2Error', 'geoip']


@dataclass
Expand Down
18 changes: 9 additions & 9 deletions funnel/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@

__all__ = [
"ACCOUNT_STATE",
"EMAIL_DELIVERY_STATE",
"LOGIN_SESSION_VALIDITY_PERIOD",
"MODERATOR_REPORT_TYPE",
"PASSWORD_MAX_LENGTH",
"PASSWORD_MIN_LENGTH",
"PROPOSAL_STATE",
"RESERVED_NAMES",
"RSVP_STATUS",
"VISIBILITY_STATE",
"Account",
"AccountAdminNotification",
"AccountAdminRevokedNotification",
Expand Down Expand Up @@ -57,7 +66,6 @@
"Draft",
"DuckTypeAccount",
"DynamicMapped",
"EMAIL_DELIVERY_STATE",
"EmailAddress",
"EmailAddressBlockedError",
"EmailAddressError",
Expand All @@ -73,15 +81,13 @@
"ImgeeType",
"IncompleteUserMigrationError",
"IntTitle",
"LOGIN_SESSION_VALIDITY_PERIOD",
"Label",
"LocaleType",
"LoginSession",
"LoginSessionError",
"LoginSessionExpiredError",
"LoginSessionInactiveUserError",
"LoginSessionRevokedError",
"MODERATOR_REPORT_TYPE",
"Mailer",
"MailerDraft",
"MailerRecipient",
Expand Down Expand Up @@ -114,9 +120,6 @@
"OptionalEmailAddressMixin",
"OptionalPhoneNumberMixin",
"Organization",
"PASSWORD_MAX_LENGTH",
"PASSWORD_MIN_LENGTH",
"PROPOSAL_STATE",
"PhoneNumber",
"PhoneNumberBlockedError",
"PhoneNumberError",
Expand Down Expand Up @@ -146,8 +149,6 @@
"ProposalSuuidRedirect",
"Query",
"QueryProperty",
"RESERVED_NAMES",
"RSVP_STATUS",
"RegistrationCancellationNotification",
"RegistrationConfirmationNotification",
"RegistryMixin",
Expand Down Expand Up @@ -176,7 +177,6 @@
"UrlType",
"User",
"UuidMixin",
"VISIBILITY_STATE",
"Venue",
"VenueRoom",
"VideoError",
Expand Down
18 changes: 9 additions & 9 deletions funnel/models/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,15 @@ from .video_mixin import VideoError, VideoMixin, parse_video_url

__all__ = [
"ACCOUNT_STATE",
"EMAIL_DELIVERY_STATE",
"LOGIN_SESSION_VALIDITY_PERIOD",
"MODERATOR_REPORT_TYPE",
"PASSWORD_MAX_LENGTH",
"PASSWORD_MIN_LENGTH",
"PROPOSAL_STATE",
"RESERVED_NAMES",
"RSVP_STATUS",
"VISIBILITY_STATE",
"Account",
"AccountAdminNotification",
"AccountAdminRevokedNotification",
Expand Down Expand Up @@ -286,7 +295,6 @@ __all__ = [
"Draft",
"DuckTypeAccount",
"DynamicMapped",
"EMAIL_DELIVERY_STATE",
"EmailAddress",
"EmailAddressBlockedError",
"EmailAddressError",
Expand All @@ -302,15 +310,13 @@ __all__ = [
"ImgeeType",
"IncompleteUserMigrationError",
"IntTitle",
"LOGIN_SESSION_VALIDITY_PERIOD",
"Label",
"LocaleType",
"LoginSession",
"LoginSessionError",
"LoginSessionExpiredError",
"LoginSessionInactiveUserError",
"LoginSessionRevokedError",
"MODERATOR_REPORT_TYPE",
"Mailer",
"MailerDraft",
"MailerRecipient",
Expand Down Expand Up @@ -343,9 +349,6 @@ __all__ = [
"OptionalEmailAddressMixin",
"OptionalPhoneNumberMixin",
"Organization",
"PASSWORD_MAX_LENGTH",
"PASSWORD_MIN_LENGTH",
"PROPOSAL_STATE",
"PhoneNumber",
"PhoneNumberBlockedError",
"PhoneNumberError",
Expand Down Expand Up @@ -375,8 +378,6 @@ __all__ = [
"ProposalSuuidRedirect",
"Query",
"QueryProperty",
"RESERVED_NAMES",
"RSVP_STATUS",
"RegistrationCancellationNotification",
"RegistrationConfirmationNotification",
"RegistryMixin",
Expand Down Expand Up @@ -405,7 +406,6 @@ __all__ = [
"UrlType",
"User",
"UuidMixin",
"VISIBILITY_STATE",
"Venue",
"VenueRoom",
"VideoError",
Expand Down
Loading
Loading