Skip to content

Commit 0a9c047

Browse files
jeremymanningclaude
andcommitted
Improve mypy configuration and add type stub dependencies
- Add type stub packages (types-PyYAML, types-requests, types-paramiko) to dev dependencies - Configure mypy to focus on project files only with proper excludes - Disable warn_return_any to match original setup behavior - Note: External MCP package has Python 3.10+ syntax incompatible with mypy target 3.8 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 46c3827 commit 0a9c047

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

pyproject.toml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ dev = [
8383
"black>=21.0",
8484
"flake8>=3.8",
8585
"mypy>=0.812",
86+
"types-PyYAML",
87+
"types-requests",
88+
"types-paramiko",
8689
]
8790
test = [
8891
"pytest>=6.0",
@@ -148,10 +151,23 @@ target-version = ['py38']
148151

149152
[tool.mypy]
150153
python_version = "3.8"
151-
warn_return_any = true
154+
warn_return_any = false
152155
warn_unused_configs = true
153156
disallow_untyped_defs = false
154157
ignore_missing_imports = true
158+
exclude = [
159+
"build/",
160+
"dist/",
161+
".venv/",
162+
"venv/",
163+
".git/",
164+
"__pycache__/",
165+
".mypy_cache/",
166+
".pytest_cache/",
167+
"tests/conftest.py",
168+
]
169+
# Only check our package files
170+
files = ["clustrix/"]
155171

156172
[tool.pytest.ini_options]
157173
testpaths = ["tests"]

0 commit comments

Comments
 (0)