File tree Expand file tree Collapse file tree 3 files changed +76
-5
lines changed Expand file tree Collapse file tree 3 files changed +76
-5
lines changed Original file line number Diff line number Diff line change 34
34
env :
35
35
SKIP : no-commit-to-branch
36
36
37
+ mypy :
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - uses : actions/checkout@v4
41
+
42
+ - uses : astral-sh/setup-uv@v3
43
+ with :
44
+ enable-cache : true
45
+
46
+ - name : Install dependencies
47
+ run : uv sync --python 3.11 --frozen --all-extras --all-packages
48
+
49
+ - name : Run mypy
50
+ run : uv run --frozen mypy --python-version 3.11 src
51
+
37
52
test :
38
53
name : test on ${{ matrix.python-version }}
39
54
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ classifiers = [
26
26
]
27
27
version = " 0.2.2"
28
28
requires-python = " >=3.11"
29
- dependencies = [
30
- " mcp" ,
31
- " uvicorn>=0.34.0" ,
32
- ]
29
+ dependencies = [" mcp" , " uvicorn>=0.34.0" ]
33
30
34
31
[build-system ]
35
32
requires = [" setuptools" ]
@@ -43,6 +40,7 @@ Changelog = "https://github.com/sparfenyuk/mcp-proxy/releases"
43
40
44
41
[project .scripts ]
45
42
mcp-proxy = " mcp_proxy.__main__:main"
43
+ mcp-reverse-proxy = " mcp_proxy.__main__:client"
46
44
47
45
[tool .setuptools .package-data ]
48
46
"*" = [" py.typed" ]
@@ -52,6 +50,7 @@ dev-dependencies = [
52
50
" pytest>=8.3.3" ,
53
51
" pytest-asyncio>=0.25.0" ,
54
52
" coverage>=7.6.0" ,
53
+ " mypy>=1.0.0" ,
55
54
]
56
55
57
56
[tool .coverage .run ]
@@ -74,6 +73,21 @@ exclude_lines = [
74
73
' if __name__ == .__main__.:' ,
75
74
]
76
75
76
+ [tool .mypy ]
77
+ allow_redefinition = false
78
+ disallow_untyped_defs = true
79
+ follow_imports = " normal"
80
+ follow_untyped_imports = true
81
+ no_implicit_optional = true
82
+ show_error_code_links = true
83
+ show_error_codes = true
84
+ strict = true
85
+ warn_redundant_casts = true
86
+ warn_return_any = true
87
+ warn_unreachable = true
88
+ warn_unused_configs = true
89
+ warn_unused_ignores = true
90
+
77
91
[tool .ruff .lint ]
78
92
select = [" ALL" ]
79
93
ignore = [
You can’t perform that action at this time.
0 commit comments