Skip to content

Commit 006977d

Browse files
Fix mypy CI checks.
1 parent 630c1e1 commit 006977d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: ruff check .
3131

3232
- name: Run type checker
33-
run: mypy morphe --ignore-missing-imports
33+
run: mypy morphe --ignore-missing-imports --exclude 'morphe/adapters/(freecad|fusion|inventor|solidworks)/'
3434

3535
- name: Run tests
3636
run: pytest tests/ -v --ignore=tests/test_freecad_roundtrip.py

morphe/adapters/__init__.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
- fusion: Autodesk Fusion 360 adapter
88
- inventor: Autodesk Inventor adapter
99
- solidworks: SolidWorks adapter
10+
11+
CAD-specific adapters are not imported by default to avoid
12+
requiring CAD dependencies. Import them directly:
13+
from morphe.adapters.freecad import FreeCADClient
14+
from morphe.adapters.fusion import FusionClient
1015
"""
1116

12-
from . import common, freecad, fusion, inventor, solidworks
17+
from . import common
1318

14-
__all__ = ["common", "freecad", "fusion", "inventor", "solidworks"]
19+
__all__ = ["common"]

0 commit comments

Comments
 (0)