Skip to content

Commit 504f645

Browse files
authored
Update translate.py and tests (#609)
* Update translate.py and tests Signed-off-by: Mihai Criveti <[email protected]> * Update translate.py and tests Signed-off-by: Mihai Criveti <[email protected]> * Update translate.py and tests Signed-off-by: Mihai Criveti <[email protected]> * Update translate.py and tests Signed-off-by: Mihai Criveti <[email protected]> --------- Signed-off-by: Mihai Criveti <[email protected]>
1 parent bf33359 commit 504f645

File tree

6 files changed

+480
-183
lines changed

6 files changed

+480
-183
lines changed

.github/tools/pin_requirements.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
1010
version specifiers from >= to == for reproducible builds.
1111
"""
1212

13-
import tomllib
13+
# Standard
14+
from pathlib import Path
1415
import re
1516
import sys
16-
from pathlib import Path
17+
import tomllib
1718

1819

1920
def pin_requirements(pyproject_path="pyproject.toml", output_path="requirements.txt"):
@@ -79,6 +80,7 @@ def pin_requirements(pyproject_path="pyproject.toml", output_path="requirements.
7980

8081
def main():
8182
"""Main entry point."""
83+
# Standard
8284
import argparse
8385

8486
parser = argparse.ArgumentParser(

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ ignored-parents=
288288

289289
# Maximum number of arguments for function / method.
290290
max-args=12
291-
max-positional-arguments = 6
291+
max-positional-arguments = 8
292292

293293
# Maximum number of attributes for a class (see R0902).
294294
max-attributes=16

mcpgateway/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
ToolUpdate,
9494
)
9595
from mcpgateway.services.completion_service import CompletionService
96-
from mcpgateway.services.gateway_service import GatewayConnectionError, GatewayService, GatewayNameConflictError
96+
from mcpgateway.services.gateway_service import GatewayConnectionError, GatewayNameConflictError, GatewayService
9797
from mcpgateway.services.logging_service import LoggingService
9898
from mcpgateway.services.prompt_service import (
9999
PromptError,

0 commit comments

Comments
 (0)