Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#2137)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kiran Jonnalagadda <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and jace authored Jan 20, 2025
1 parent f1f1fb2 commit 4259d3b
Show file tree
Hide file tree
Showing 54 changed files with 183 additions and 191 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ ci:
'no-commit-to-branch',
# 'hadolint-docker',
'docker-compose-check',
'mypy', # Runs as a local hook now
'mypy-local', # Runs as a local hook now
]
repos:
- repo: https://github.com/pre-commit-ci/pre-commit-ci-config
rev: v1.6.1
hooks:
- id: check-pre-commit-ci-config
- repo: https://github.com/mxr/sync-pre-commit-deps
rev: v0.0.1
rev: v0.0.2
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.9.1
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.3
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: v4.0.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 All @@ -147,7 +147,7 @@ repos:
- id: docker-compose-check
- repo: local
hooks:
- id: mypy
- id: mypy-local
name: mypy
entry: .venv/bin/mypy
args:
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/periodic/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ async def user_stats() -> dict[str, ResourceStats]:
}
)

for key in stats:
for key in list(stats.keys()):
if key not in ('login_sessions', 'app_login_sessions', 'returning_users'):
stats[key].set_trend_symbols()

Expand Down
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
3 changes: 1 addition & 2 deletions funnel/forms/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ class SessionForm(forms.Form):
banner_image_url = forms.URLField(
__("Banner image URL"),
description=__(
"From images.hasgeek.com, with 16:9 aspect ratio."
" Should be < 50 kB in size"
"From images.hasgeek.com, with 16:9 aspect ratio. Should be < 50 kB in size"
),
validators=[
forms.validators.Optional(),
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
Loading

0 comments on commit 4259d3b

Please sign in to comment.