Skip to content

Commit 943f312

Browse files
committed
style: apply black formatting to core data classes
1 parent 952dd28 commit 943f312

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

packages/toolbox-adk/src/toolbox_adk/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from .version import __version__
16-
from .credentials import CredentialStrategy, CredentialConfig, CredentialType
1715
from .client import ToolboxClient
18-
from .tool import ToolboxTool, ToolboxContext
16+
from .credentials import CredentialConfig, CredentialStrategy, CredentialType
17+
from .tool import ToolboxContext, ToolboxTool
1918
from .toolset import ToolboxToolset
19+
from .version import __version__
2020

2121
__all__ = [
2222
"CredentialStrategy",

packages/toolbox-adk/src/toolbox_adk/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# limitations under the License.
1414

1515
from dataclasses import dataclass
16-
from typing import Any, Optional, List, Dict
1716
from enum import Enum
17+
from typing import Any, Dict, List, Optional
1818

1919
from google.auth import credentials as google_creds
2020

packages/toolbox-adk/tests/unit/test_credentials.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
from toolbox_adk.credentials import CredentialStrategy, CredentialType
1616

17+
1718
class TestCredentialStrategy:
1819
def test_toolbox_identity(self):
1920
config = CredentialStrategy.TOOLBOX_IDENTITY()
@@ -33,9 +34,7 @@ def test_workload_identity_alias(self):
3334

3435
def test_user_identity(self):
3536
config = CredentialStrategy.USER_IDENTITY(
36-
client_id="id",
37-
client_secret="secret",
38-
scopes=["scope1"]
37+
client_id="id", client_secret="secret", scopes=["scope1"]
3938
)
4039
assert config.type == CredentialType.USER_IDENTITY
4140
assert config.client_id == "id"

0 commit comments

Comments
 (0)