Skip to content
Closed
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
3 changes: 2 additions & 1 deletion .github/.platforms/generate_platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
import sys
import tempfile
import time
from collections.abc import Callable
from dataclasses import dataclass
from pathlib import Path
from typing import Callable, TypeVar
from typing import TypeVar

# Configuration
PYTHON_VERSIONS = ("3.10", "3.11", "3.12", "3.13", "3.14")
Expand Down
10 changes: 6 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ repos:
hooks:
- id: isort

- repo: https://github.com/asottile/pyupgrade
rev: v3.19.1
hooks:
- id: pyupgrade
- repo: https://github.com/asottile/pyupgrade
rev: v3.21.2
hooks:
- id: pyupgrade
args: [--py310-plus]


- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.20.0
Expand Down
5 changes: 2 additions & 3 deletions cloudsmith_cli/cli/commands/mcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import shutil
import sys
from pathlib import Path
from typing import Dict, List

import click
import json5
Expand Down Expand Up @@ -110,7 +109,7 @@ def list_groups(ctx, opts, mcp_server: server.DynamicMCPServer):
print_groups(groups)


def print_tools(tool_list: Dict[str, OpenAPITool]):
def print_tools(tool_list: dict[str, OpenAPITool]):
"""Print tools as a table or output in another format."""

headers = [
Expand Down Expand Up @@ -138,7 +137,7 @@ def print_tools(tool_list: Dict[str, OpenAPITool]):
utils.pretty_print_list_info(num_results=num_results, suffix=list_suffix)


def print_groups(group_list: Dict[str, List[str]]):
def print_groups(group_list: dict[str, list[str]]):
"""Print tool groups as a table or output in another format."""

headers = [
Expand Down
Loading
Loading