🔧 Add mypy type-check CI job #10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/mypy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
mypy.iniwith Python 3.12 target,ignore_missing_imports = True,check_untyped_defs = True,files = custom_components.ignore_errors = Trueoverride forcustom_components.comwatt.*so CI is green today. Mypy did find real issues: the C1NameError(undefinedauto_production_rate),_deviceaccessed on the untypedComwattSensorbase, andFlowResultvsConfigFlowResultmismatches inconfig_flow.py. These are already tracked as separate findings — each fix PR should narrow or remove the override as the file becomes type-clean.type-check-mypyjob to the Validate workflow.Test plan
mypypasses locally with this configtype-check-mypyCI job is green on this branchNotes
homeassistantandcomwatt-clientrather than relying on a cached test environment so it can run independently of the pytest job.52f9236c6c35696d4ac9🔧 (AI) Add mypy type-check CI jobto 🔧 Add mypy type-check CI job35696d4ac91d55e42b5b1d55e42b5b8436abdb328436abdb32ffacd1315fffacd1315f681017822468101782241315786d32