-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
ai-friendlyDesigned for AI-assisted implementationDesigned for AI-assisted implementationtype:refactorCode restructuring without behavior changeCode restructuring without behavior change
Description
Context
PR #84 added strict mypy checking for chainweaver/ and includes a [[tool.mypy.overrides]] for tests.* (relaxing disallow_untyped_defs). However, CI only runs mypy chainweaver/, so the override is not exercised — mypy emits a benign Warning: unused section(s) (exit 0).
What to do
- Expand the CI mypy invocation to include
tests/:python -m mypy chainweaver/ tests/ - Fix the 10
[type-arg]errors in test files (baredict→dict[str, Any]intests/helpers.pyandtests/test_flow_execution.py) - Once tests/ is included, the
tests.*override will be exercised and the benign warning disappears.
Why
The tests.* override in pyproject.toml is currently present but unused in CI. Adding tests/ to the mypy invocation makes it active, eliminates the warning, and provides type-checking coverage for test code.
Related
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ai-friendlyDesigned for AI-assisted implementationDesigned for AI-assisted implementationtype:refactorCode restructuring without behavior changeCode restructuring without behavior change