From 97eff88585d34c4d8b4f416ab5911040363de618 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Wed, 22 Jan 2025 22:32:38 -0600 Subject: [PATCH 1/4] mypy.ini -> exclude OCP-stubs --- mypy.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mypy.ini b/mypy.ini index 2960c49b..b4b1a7b0 100644 --- a/mypy.ini +++ b/mypy.ini @@ -17,6 +17,9 @@ ignore_missing_imports = True [mypy-OCP.*] ignore_missing_imports = True +[mypy-OCP-stubs.*] +ignore_missing_imports = True + [mypy-ocpsvg.*] ignore_missing_imports = True From bd1ad47ac5310eb9079f105f6c4250deb85df9c0 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Thu, 23 Jan 2025 07:39:10 -0600 Subject: [PATCH 2/4] Update mypy.ini --- mypy.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy.ini b/mypy.ini index b4b1a7b0..c9bab945 100644 --- a/mypy.ini +++ b/mypy.ini @@ -17,7 +17,7 @@ ignore_missing_imports = True [mypy-OCP.*] ignore_missing_imports = True -[mypy-OCP-stubs.*] +[mypy-ocp-stubs.*] ignore_missing_imports = True [mypy-ocpsvg.*] From 22611e1554c0a4877df8cfd264bdbfe8a355345e Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Thu, 23 Jan 2025 10:09:14 -0600 Subject: [PATCH 3/4] pyproject.toml -> move cadquery-ocp-stubs from [development] to [stubs] and exclude from [all] (optional dependencies) --- pyproject.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9daf205d..4a718284 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,6 @@ ocp_vscode = [ # development dependencies development = [ - "cadquery-ocp-stubs >= 7.8, < 7.9", "wheel", "pytest", "pytest-cov", @@ -69,6 +68,11 @@ development = [ "black", ] +# typing stubs for the OCP CAD kernel +stubs = [ + "cadquery-ocp-stubs >= 7.8, < 7.9", +] + # dependency to run the pytest benchmarks benchmark = [ "pytest-benchmark", @@ -90,6 +94,7 @@ all = [ "build123d[development]", "build123d[benchmark]", "build123d[docs]", + # "build123d[stubs]", # excluded for now as mypy fails ] [tool.setuptools.packages.find] From 1740f388a5747df31cdf812c87026748218b5a81 Mon Sep 17 00:00:00 2001 From: jdegenstein Date: Thu, 23 Jan 2025 10:09:56 -0600 Subject: [PATCH 4/4] mypy.ini -> remove stubs exclusion attempt --- mypy.ini | 3 --- 1 file changed, 3 deletions(-) diff --git a/mypy.ini b/mypy.ini index 1faebf70..b014dd51 100644 --- a/mypy.ini +++ b/mypy.ini @@ -20,9 +20,6 @@ ignore_missing_imports = True [mypy-OCP.*] ignore_missing_imports = True -[mypy-ocp-stubs.*] -ignore_missing_imports = True - [mypy-ocpsvg.*] ignore_missing_imports = True