Skip to content

Commit 30b7497

Browse files
authored
Merge pull request #28 from czhao314/isort-fix
chore: enable isort
2 parents 33b6e50 + 2ba4cec commit 30b7497

60 files changed

Lines changed: 228 additions & 138 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,13 @@ repos:
421421
description: The uncompromising Python code formatter.
422422
language_version: python3
423423

424-
# - repo: https://github.com/pycqa/isort
425-
# rev: 6.0.1
426-
# hooks:
427-
# - id: isort
428-
# name: 🐍 isort - Import Sorter
429-
# description: A Python utility / library to sort imports.
430-
# args: [--profile=black]
424+
- repo: https://github.com/pycqa/isort
425+
rev: 6.0.1
426+
hooks:
427+
- id: isort
428+
name: 🐍 isort - Import Sorter
429+
description: A Python utility / library to sort imports.
430+
args: [--profile=black]
431431

432432
# - repo: https://github.com/asottile/pyupgrade
433433
# rev: v3.20.0

cforge/commands/deploy/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Third-Party
1111
import typer
1212

13-
# First-Party
13+
# Local
1414
from cforge.common.console import get_console
1515

1616

cforge/commands/metrics/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Third-Party
1111
import typer
1212

13-
# First-Party
13+
# Local
1414
from cforge.common.console import get_console
1515
from cforge.common.http import make_authenticated_request
1616
from cforge.common.render import print_json

cforge/commands/resources/a2a.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@
88
"""
99

1010
# Standard
11-
import json
1211
from pathlib import Path
1312
from typing import Optional
13+
import json
1414

1515
# Third-Party
1616
import typer
1717

1818
# First-Party
19+
from mcpgateway.schemas import A2AAgentCreate, A2AAgentUpdate
20+
21+
# Local
1922
from cforge.common.console import get_console
2023
from cforge.common.errors import handle_exception
2124
from cforge.common.http import make_authenticated_request
2225
from cforge.common.prompting import prompt_for_schema
2326
from cforge.common.render import print_json, print_table
24-
from mcpgateway.schemas import A2AAgentCreate, A2AAgentUpdate
2527

2628

2729
def a2a_list(

cforge/commands/resources/mcp_servers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@
88
"""
99

1010
# Standard
11-
import json
1211
from pathlib import Path
1312
from typing import Optional
13+
import json
1414

1515
# Third-Party
1616
import typer
1717

1818
# First-Party
19+
from mcpgateway.schemas import GatewayCreate, GatewayUpdate
20+
21+
# Local
1922
from cforge.common.console import get_console
2023
from cforge.common.errors import handle_exception
2124
from cforge.common.http import make_authenticated_request
2225
from cforge.common.prompting import prompt_for_schema
2326
from cforge.common.render import print_json, print_table
24-
from mcpgateway.schemas import GatewayCreate, GatewayUpdate
2527

2628

2729
def mcp_servers_list(

cforge/commands/resources/plugins.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
# Third-Party
2020
import typer
2121

22-
# First-Party
22+
# Local
2323
from cforge.common.console import get_console
24-
from cforge.common.errors import AuthenticationError, CaseInsensitiveEnum, CLIError, handle_exception
24+
from cforge.common.errors import AuthenticationError, CLIError, CaseInsensitiveEnum, handle_exception
2525
from cforge.common.http import make_authenticated_request
2626
from cforge.common.render import print_json, print_table
2727

cforge/commands/resources/prompts.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@
88
"""
99

1010
# Standard
11-
import json
1211
from pathlib import Path
1312
from typing import Any, Dict, Optional
13+
import json
1414

1515
# Third-Party
1616
import typer
1717

1818
# First-Party
19+
from mcpgateway.schemas import PromptCreate, PromptUpdate
20+
21+
# Local
1922
from cforge.common.console import get_console
2023
from cforge.common.errors import handle_exception
2124
from cforge.common.http import make_authenticated_request
2225
from cforge.common.prompting import prompt_for_schema
2326
from cforge.common.render import print_json, print_table
24-
from mcpgateway.schemas import PromptCreate, PromptUpdate
2527

2628

2729
def prompts_list(

cforge/commands/resources/resources.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@
88
"""
99

1010
# Standard
11-
import json
1211
from pathlib import Path
1312
from typing import Any, Dict, Optional
13+
import json
1414

1515
# Third-Party
1616
import typer
1717

1818
# First-Party
19+
from mcpgateway.schemas import ResourceCreate, ResourceUpdate
20+
21+
# Local
1922
from cforge.common.console import get_console
2023
from cforge.common.errors import handle_exception
2124
from cforge.common.http import make_authenticated_request
2225
from cforge.common.prompting import prompt_for_schema
2326
from cforge.common.render import print_json, print_table
24-
from mcpgateway.schemas import ResourceCreate, ResourceUpdate
2527

2628

2729
def resources_list(

cforge/commands/resources/tools.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@
88
"""
99

1010
# Standard
11-
import json
1211
from pathlib import Path
1312
from typing import Any, Dict, Optional
13+
import json
1414

1515
# Third-Party
1616
import typer
1717

1818
# First-Party
19+
from mcpgateway.schemas import ToolCreate, ToolUpdate
20+
21+
# Local
1922
from cforge.common.console import get_console
2023
from cforge.common.errors import CLIError, handle_exception
2124
from cforge.common.http import make_authenticated_request
2225
from cforge.common.prompting import prompt_for_json_schema, prompt_for_schema
2326
from cforge.common.render import print_json, print_table
24-
from mcpgateway.schemas import ToolCreate, ToolUpdate
2527

2628

2729
def tools_list(

cforge/commands/resources/virtual_servers.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@
88
"""
99

1010
# Standard
11-
import json
1211
from pathlib import Path
1312
from typing import Optional
13+
import json
1414

1515
# Third-Party
1616
import typer
1717

1818
# First-Party
19+
from mcpgateway.schemas import ServerCreate, ServerUpdate
20+
21+
# Local
1922
from cforge.common.console import get_console
2023
from cforge.common.errors import handle_exception
2124
from cforge.common.http import make_authenticated_request
2225
from cforge.common.prompting import prompt_for_schema
2326
from cforge.common.render import print_json, print_table
24-
from mcpgateway.schemas import ServerCreate, ServerUpdate
2527

2628

2729
def _fixup_payload(data: dict) -> dict:

0 commit comments

Comments
 (0)