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 packages/datacommons-mcp/datacommons_mcp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self) -> None:
# Load settings
try:
self.settings = settings.get_dc_settings()
settings_dict = self.settings.model_dump()
settings_dict = self.settings.model_dump(mode="json")
settings_dict["api_key"] = (
"<SET>" if settings_dict.get("api_key") else "<NOT_SET>"
)
Expand Down
4 changes: 3 additions & 1 deletion scripts/create_release_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def main() -> None:
description="Create a version bump PR via Cloud Build"
)
parser.add_argument("--project", default="datcom-ci", help="GCP Project ID")
parser.add_argument("--bump-type", choices=["major", "minor", "patch"], help="Bump type")
parser.add_argument(
"--bump-type", choices=["major", "minor", "patch"], help="Bump type"
)

args = parser.parse_args()

Expand Down
10 changes: 8 additions & 2 deletions scripts/create_staging_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ def main() -> None:
"--commit",
help="Specific commit hash to tag (defaults to HEAD). If provided, version is read from this commit.",
)
parser.add_argument("--bump-type", choices=["none", "major", "minor", "patch"], help="Bump type",
parser.add_argument(
"--bump-type",
choices=["none", "major", "minor", "patch"],
help="Bump type",
default="none",
)
args = parser.parse_args()
Expand All @@ -91,7 +94,10 @@ def main() -> None:
print("Using current HEAD.")

if args.bump_type == "none":
print("\nDo you want to bump the base version before creating the RC? (y/N) [n]: ", end="")
print(
"\nDo you want to bump the base version before creating the RC? (y/N) [n]: ",
end="",
)
bump_choice = input().strip().lower()
if bump_choice == "y":
args.bump_type = prompt_for_bump_type()
Expand Down
5 changes: 3 additions & 2 deletions scripts/get_next_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def get_local_version() -> str:
TEST_PYPI_JSON_URL = f"https://test.pypi.org/pypi/{PACKAGE_NAME}/json"



def bump_version(current_version: str, bump_type: str) -> str:
major, minor, patch = map(int, current_version.split("."))
if bump_type == "major":
Expand All @@ -82,7 +81,9 @@ def prompt_for_bump_type() -> str:
return "none"


def get_next_version(base_version: str, bump_type: str = "none", release_type: str = "rc") -> None:
def get_next_version(
base_version: str, bump_type: str = "none", release_type: str = "rc"
) -> None:
if bump_type and bump_type != "none":
base_version = bump_version(base_version, bump_type)

Expand Down