diff --git a/python/cpp/Makefile.jinja b/python/cpp/Makefile.jinja index b515de3..42df121 100644 --- a/python/cpp/Makefile.jinja +++ b/python/cpp/Makefile.jinja @@ -66,7 +66,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/python/cpp/pyproject.toml.jinja b/python/cpp/pyproject.toml.jinja index 3826a53..9110ffb 100644 --- a/python/cpp/pyproject.toml.jinja +++ b/python/cpp/pyproject.toml.jinja @@ -110,7 +110,7 @@ test-requires = ["pytest"] [tool.coverage.run] branch = true omit = [ - "{{ module }}/tests/integration/", + "{{ module }}/tests/integration/*", ] [tool.coverage.report] diff --git a/python/cpp/{{module}}/extension.pyi b/python/cpp/{{module}}/extension.pyi new file mode 100644 index 0000000..bfb558d --- /dev/null +++ b/python/cpp/{{module}}/extension.pyi @@ -0,0 +1 @@ +def add(i: int, j: int) -> int: ... diff --git a/python/cppjswasm/Makefile.jinja b/python/cppjswasm/Makefile.jinja index e243c04..957d88c 100644 --- a/python/cppjswasm/Makefile.jinja +++ b/python/cppjswasm/Makefile.jinja @@ -97,7 +97,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/python/cppjswasm/pyproject.toml.jinja b/python/cppjswasm/pyproject.toml.jinja index 6425332..3fd6b90 100644 --- a/python/cppjswasm/pyproject.toml.jinja +++ b/python/cppjswasm/pyproject.toml.jinja @@ -122,7 +122,7 @@ test-requires = ["pytest"] [tool.coverage.run] branch = true omit = [ - "{{ module }}/tests/integration/", + "{{ module }}/tests/integration/*", ] [tool.coverage.report] diff --git a/python/cppjswasm/{{module}}/extension_cpp.pyi b/python/cppjswasm/{{module}}/extension_cpp.pyi new file mode 100644 index 0000000..bfb558d --- /dev/null +++ b/python/cppjswasm/{{module}}/extension_cpp.pyi @@ -0,0 +1 @@ +def add(i: int, j: int) -> int: ... diff --git a/python/cython/Makefile.jinja b/python/cython/Makefile.jinja index 1842e9e..c1b271a 100644 --- a/python/cython/Makefile.jinja +++ b/python/cython/Makefile.jinja @@ -40,7 +40,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check Python types (advisory) ty check {{ module }} -checks: check-dist ## run distribution checks +checks: check-dist check-types ## run distribution checks check: checks test: ## run Python tests diff --git a/python/cython/pyproject.toml.jinja b/python/cython/pyproject.toml.jinja index 9d6043a..8e6ef07 100644 --- a/python/cython/pyproject.toml.jinja +++ b/python/cython/pyproject.toml.jinja @@ -87,7 +87,7 @@ replace = 'version = "{new_version}"' [tool.coverage.run] branch = true omit = [ - "{{ module }}/tests/integration/", + "{{ module }}/tests/integration/*", "{{ module }}/_compiled.py", ] diff --git a/python/cython/{{module}}/_native.pyi b/python/cython/{{module}}/_native.pyi new file mode 100644 index 0000000..44df0f3 --- /dev/null +++ b/python/cython/{{module}}/_native.pyi @@ -0,0 +1 @@ +def add(left: int, right: int) -> int: ... diff --git a/python/js/Makefile.jinja b/python/js/Makefile.jinja index b478d93..0061891 100644 --- a/python/js/Makefile.jinja +++ b/python/js/Makefile.jinja @@ -79,7 +79,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/python/js/pyproject.toml.jinja b/python/js/pyproject.toml.jinja index c187e98..2dfb440 100644 --- a/python/js/pyproject.toml.jinja +++ b/python/js/pyproject.toml.jinja @@ -92,7 +92,7 @@ replace = '"version": "{new_version}"' [tool.coverage.run] branch = true omit = [ - "{{ module }}/tests/integration/", + "{{ module }}/tests/integration/*", ] [tool.coverage.report] diff --git a/python/jupyter/Makefile.jinja b/python/jupyter/Makefile.jinja index ef081c7..6710fc9 100644 --- a/python/jupyter/Makefile.jinja +++ b/python/jupyter/Makefile.jinja @@ -81,7 +81,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/python/jupyter/pyproject.toml.jinja b/python/jupyter/pyproject.toml.jinja index 2545f30..98d2f4e 100644 --- a/python/jupyter/pyproject.toml.jinja +++ b/python/jupyter/pyproject.toml.jinja @@ -100,7 +100,7 @@ replace = '"version": "{new_version}"' [tool.coverage.run] branch = true omit = [ - "{{ module }}/tests/integration/", + "{{ module }}/tests/integration/*", ] [tool.coverage.report] diff --git a/python/pure/Makefile.jinja b/python/pure/Makefile.jinja index 1708a80..8840883 100644 --- a/python/pure/Makefile.jinja +++ b/python/pure/Makefile.jinja @@ -52,7 +52,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # Alias check: checks diff --git a/python/pure/pyproject.toml.jinja b/python/pure/pyproject.toml.jinja index 9c992d5..83d5f95 100644 --- a/python/pure/pyproject.toml.jinja +++ b/python/pure/pyproject.toml.jinja @@ -81,7 +81,7 @@ replace = 'version = "{new_version}"' [tool.coverage.run] branch = true omit = [ - "{{ module }}/tests/integration/", + "{{ module }}/tests/integration/*", ] [tool.coverage.report] diff --git a/python/rust/Makefile.jinja b/python/rust/Makefile.jinja index c791320..addd238 100644 --- a/python/rust/Makefile.jinja +++ b/python/rust/Makefile.jinja @@ -80,7 +80,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/python/rust/pyproject.toml.jinja b/python/rust/pyproject.toml.jinja index 5a83144..a898e12 100644 --- a/python/rust/pyproject.toml.jinja +++ b/python/rust/pyproject.toml.jinja @@ -131,7 +131,7 @@ xbuild-tools = ["cargo", "rustc", "rustup"] [tool.coverage.run] branch = true omit = [ - "{{ module }}/tests/integration/", + "{{ module }}/tests/integration/*", ] [tool.coverage.report] diff --git a/python/rustjswasm/Makefile.jinja b/python/rustjswasm/Makefile.jinja index 88d51f3..11dd019 100644 --- a/python/rustjswasm/Makefile.jinja +++ b/python/rustjswasm/Makefile.jinja @@ -94,7 +94,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/python/rustjswasm/pyproject.toml.jinja b/python/rustjswasm/pyproject.toml.jinja index 5413f5f..a600bc1 100644 --- a/python/rustjswasm/pyproject.toml.jinja +++ b/python/rustjswasm/pyproject.toml.jinja @@ -143,7 +143,7 @@ xbuild-tools = ["cargo", "rustc", "rustup"] [tool.coverage.run] branch = true omit = [ - "{{ module }}/tests/integration/", + "{{ module }}/tests/integration/*", ] [tool.coverage.report]