Skip to content
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
2 changes: 1 addition & 1 deletion scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ run_formatter pyupgrade --exit-zero-even-if-changed --py310-plus
echo "Running autoflake..."
run_formatter autoflake -i -r --remove-all-unused-imports
echo "Running ruff check (fix-only)..."
run_formatter ruff check --fix-only $RUFF_UNSAFE_FIXES_FLAG
run_formatter ruff check --fix $RUFF_UNSAFE_FIXES_FLAG
echo "Running ruff format..."
run_formatter ruff format

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# ruff: noqa: PLC0415
import json
import logging

Expand Down Expand Up @@ -94,7 +95,7 @@ def __init__(

if encryption_key:
try:
from cryptography.fernet import Fernet # noqa: PLC0415
from cryptography.fernet import Fernet
except ImportError as e:
raise ImportError(
"DatabasePushNotificationConfigStore with encryption requires the 'cryptography' "
Expand Down Expand Up @@ -166,7 +167,7 @@ def _from_orm(
payload = model_instance.config_data

if self._fernet:
from cryptography.fernet import InvalidToken # noqa: PLC0415
from cryptography.fernet import InvalidToken

try:
decrypted_payload = self._fernet.decrypt(payload)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
FilePart,
FileWithBytes,
FileWithUri,
GetTaskPushNotificationConfigParams,
GetTaskPushNotificationConfigRequest,
GetAuthenticatedExtendedCardRequest,
GetAuthenticatedExtendedCardResponse,
GetAuthenticatedExtendedCardSuccessResponse,
GetTaskPushNotificationConfigParams,
GetTaskPushNotificationConfigRequest,
GetTaskPushNotificationConfigResponse,
GetTaskPushNotificationConfigSuccessResponse,
GetTaskRequest,
Expand Down
Loading