Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 9, 2024
1 parent 69206d9 commit 3fa4361
Show file tree
Hide file tree
Showing 44 changed files with 156 additions and 157 deletions.
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
8 changes: 4 additions & 4 deletions funnel/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,23 +83,23 @@

__all__ = [
'ACCOUNT_STATE',
'AccountNameProblem',
'Account',
'AccountEmail',
'AccountEmailClaim',
'AccountExternalId',
'AccountNameProblem',
'AccountOldId',
'AccountPhone',
'Anchor',
'Community',
'deleted_account',
'DuckTypeAccount',
'Organization',
'Placeholder',
'removed_account',
'Team',
'unknown_account',
'User',
'deleted_account',
'removed_account',
'unknown_account',
]


Expand Down
6 changes: 3 additions & 3 deletions funnel/models/auth_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
from .login_session import LoginSession, auth_client_login_session

__all__ = [
'AuthCode',
'AuthToken',
'AuthClient',
'AuthClientCredential',
'AuthClientTeamPermissions',
'AuthClientPermissions',
'AuthClientTeamPermissions',
'AuthCode',
'AuthToken',
]


Expand Down
Loading

0 comments on commit 3fa4361

Please sign in to comment.