Files
kicad-mcp-server/pyproject.toml
Eugene Mikhantyev 5d1477f548 chore: enable import-untyped and import-not-found mypy checks
Remove global ignore_missing_imports and the import-untyped disable,
replacing them with targeted per-package overrides for third-party
libraries that lack stubs (pcbnew, skip, sexpdata, cairosvg, kipy,
schematic). Also add python/ to mypy_path so internal modules resolve.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 21:24:00 +01:00

55 lines
915 B
TOML

[project]
name = "kicad-mcp-server"
version = "2.1.0"
requires-python = ">=3.10"
[tool.black]
line-length = 100
target-version = ["py310"]
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
python_version = "3.10"
warn_return_any = false
warn_unused_configs = true
check_untyped_defs = false
disallow_untyped_defs = false
explicit_package_bases = true
mypy_path = ".:python"
disable_error_code = [
"arg-type",
"attr-defined",
"union-attr",
"call-arg",
"assignment",
"var-annotated",
"annotation-unchecked",
"index",
"has-type",
"dict-item",
"misc",
"list-item",
"return-value",
"operator",
]
[[tool.mypy.overrides]]
module = [
"pcbnew",
"pcbnew.*",
"skip",
"skip.*",
"sexpdata",
"sexpdata.*",
"cairosvg",
"cairosvg.*",
"kipy",
"kipy.*",
"schematic",
"schematic.*",
]
ignore_missing_imports = true