Skip to content

Commit dbfa902

Browse files
committed
style: Formatting/Lint fixes
1 parent 49e686b commit dbfa902

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

scripts/format.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ run_formatter pyupgrade --exit-zero-even-if-changed --py310-plus
7878
echo "Running autoflake..."
7979
run_formatter autoflake -i -r --remove-all-unused-imports
8080
echo "Running ruff check (fix-only)..."
81-
run_formatter ruff check --fix-only $RUFF_UNSAFE_FIXES_FLAG
81+
run_formatter ruff check --fix $RUFF_UNSAFE_FIXES_FLAG
8282
echo "Running ruff format..."
8383
run_formatter ruff format
8484

src/a2a/server/tasks/database_push_notification_config_store.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# ruff: noqa: PLC0415
12
import json
23
import logging
34

@@ -94,7 +95,7 @@ def __init__(
9495

9596
if encryption_key:
9697
try:
97-
from cryptography.fernet import Fernet # noqa: PLC0415
98+
from cryptography.fernet import Fernet
9899
except ImportError as e:
99100
raise ImportError(
100101
"DatabasePushNotificationConfigStore with encryption requires the 'cryptography' "
@@ -166,7 +167,7 @@ def _from_orm(
166167
payload = model_instance.config_data
167168

168169
if self._fernet:
169-
from cryptography.fernet import InvalidToken # noqa: PLC0415
170+
from cryptography.fernet import InvalidToken
170171

171172
try:
172173
decrypted_payload = self._fernet.decrypt(payload)

tests/test_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
FilePart,
2323
FileWithBytes,
2424
FileWithUri,
25-
GetTaskPushNotificationConfigParams,
26-
GetTaskPushNotificationConfigRequest,
2725
GetAuthenticatedExtendedCardRequest,
2826
GetAuthenticatedExtendedCardResponse,
2927
GetAuthenticatedExtendedCardSuccessResponse,
28+
GetTaskPushNotificationConfigParams,
29+
GetTaskPushNotificationConfigRequest,
3030
GetTaskPushNotificationConfigResponse,
3131
GetTaskPushNotificationConfigSuccessResponse,
3232
GetTaskRequest,

0 commit comments

Comments
 (0)