Skip to content

Commit e124a9a

Browse files
committed
fix: update CI to conditionally exclude server.py for Python 3.9
- Run mypy on server.py only for Python 3.10+ where MCP dependencies are available - Exclude server.py for Python 3.9 to avoid MCP import errors - This ensures type checking works correctly across all supported Python versions
1 parent 8f24d87 commit e124a9a

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,9 @@ jobs:
3434
args: check .
3535

3636
- name: Run Mypy
37-
run: uv run mypy stackone_ai --exclude stackone_ai/server.py
37+
run: |
38+
if [[ "${{ matrix.python-version }}" == "3.9" ]]; then
39+
uv run mypy stackone_ai --exclude stackone_ai/server.py
40+
else
41+
uv run mypy stackone_ai
42+
fi

pyproject.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,3 @@ ignore_missing_imports = true
124124
[[tool.mypy.overrides]]
125125
module = "langgraph.*"
126126
ignore_missing_imports = true
127-
128-
[[tool.mypy.overrides]]
129-
module = "mcp.*"
130-
ignore_missing_imports = true

0 commit comments

Comments
 (0)