Skip to content

Commit

Permalink
lints and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
thorrester committed Jun 11, 2024
1 parent d964c84 commit 5fd246b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion opsml/helpers/gcp_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ def create_gcp_creds_from_base64(self, service_base64_creds: str) -> Tuple[Crede
"""
scopes = {"scopes": ["https://www.googleapis.com/auth/devstorage.full_control"]} # needed for gcsfs
key = self.decode_base64(service_base64_creds=service_base64_creds)
service_creds: Credentials = service_account.Credentials.from_service_account_info(info=key, **scopes) # type: ignore # noqa
service_creds: Credentials = service_account.Credentials.from_service_account_info( # type: ignore # noqa
info=key,
**scopes,
)
project_name = cast(str, service_creds.project_id)

return service_creds, project_name, False
2 changes: 1 addition & 1 deletion opsml/registry/sql/connectors/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def __init__(self, tracking_uri: str, credentials: Any = None):
@property
def _ip_type(self) -> Enum:
"""Sets IP type for CloudSql"""
from google.cloud.sql.connector.instance import IPTypes
from google.cloud.sql.connector import IPTypes

type_ = IPTypes.PRIVATE if os.environ.get("PRIVATE_IP") else IPTypes.PUBLIC

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Source = "https://github.com/demml/opsml"

[tool.poetry]
name = "opsml"
version = "2.2.0"
version = "2.3.0"
readme = "README.md"
description = "Python MLOPs quality control tooling for your production ML workflows"
authors = [
Expand Down

0 comments on commit 5fd246b

Please sign in to comment.