Skip to content

Commit af8bfe0

Browse files
committed
fix: Format the files to fix pre-commit failures
Change-Id: Ie86c42e4fa3f0c2acd1d73d399fbe6f4e0c54f02
1 parent 0775da5 commit af8bfe0

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/check-file-contents.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ jobs:
111111
# 1. Identify files containing any googleapis.com URL.
112112
set +e
113113
FILES_WITH_ENDPOINTS=$(grep -lE 'https?://[a-zA-Z0-9.-]+\.googleapis\.com' $CHANGED_FILES)
114-
114+
115115
# 2. From those, identify files that are MISSING the required mTLS version.
116116
if [ -n "$FILES_WITH_ENDPOINTS" ]; then
117117
FILES_MISSING_MTLS=$(grep -L '.mtls.googleapis.com' $FILES_WITH_ENDPOINTS)

contributing/samples/integrations/data_agent/agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
],
8080
)
8181

82+
8283
# NOTE: The generate_chart tool requires 'altair' and 'vl-convert-python' to be
8384
# installed in your environment. You can install them using:
8485
# pip install altair vl-convert-python

src/google/adk/cli/utils/evals.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
from __future__ import annotations
1616

1717
import os
18-
from typing import Any, TYPE_CHECKING
18+
from typing import Any
19+
from typing import TYPE_CHECKING
1920

2021
from pydantic import alias_generators
2122
from pydantic import BaseModel
@@ -77,9 +78,9 @@ def create_gcs_eval_managers_from_uri(
7778
from ...evaluation.gcs_eval_sets_manager import GcsEvalSetsManager
7879
except ImportError as e:
7980
raise RuntimeError(
80-
'GCS evaluation managers require Google Cloud optional dependencies.\n'
81-
'Please install them using: pip install google-adk[gcp]\n'
82-
'Or: pip install google-cloud-storage>=2.18'
81+
'GCS evaluation managers require Google Cloud optional'
82+
' dependencies.\nPlease install them using: pip install'
83+
' google-adk[gcp]\nOr: pip install google-cloud-storage>=2.18'
8384
) from e
8485

8586
gcs_bucket = eval_storage_uri.split('://')[1]

src/google/adk/skills/_utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,8 @@ def _list_skills_in_gcs_dir(
411411
except ImportError as e:
412412
raise ImportError(
413413
"google-cloud-storage is required to list skills in GCS. Install it"
414-
" with `pip install google-cloud-storage` or `pip install google-adk[gcp]`."
414+
" with `pip install google-cloud-storage` or `pip install"
415+
" google-adk[gcp]`."
415416
) from e
416417

417418
client = storage.Client(project=project_id, credentials=credentials)
@@ -478,7 +479,8 @@ def _load_skill_from_gcs_dir(
478479
except ImportError as e:
479480
raise ImportError(
480481
"google-cloud-storage is required to load skills from GCS. Install it"
481-
" with `pip install google-cloud-storage` or `pip install google-adk[gcp]`."
482+
" with `pip install google-cloud-storage` or `pip install"
483+
" google-adk[gcp]`."
482484
) from e
483485

484486
client = storage.Client(project=project_id, credentials=credentials)

tests/unittests/skills/test__utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,5 +393,3 @@ def mock_import(name, globals=None, locals=None, fromlist=(), level=0):
393393
with mock.patch("builtins.__import__", mock_import):
394394
with pytest.raises(ImportError, match="google-cloud-storage is required"):
395395
_load_skill_from_gcs_dir("my-bucket", "skills/my-skill/")
396-
397-

0 commit comments

Comments
 (0)