Skip to content

Commit 4372075

Browse files
authored
Merge pull request #207 from python-project-templates/tkp/checks-types-docs-omit
Run the type check in checks and omit integration tests by glob
2 parents f6a9056 + 8000bc8 commit 4372075

19 files changed

Lines changed: 19 additions & 16 deletions

‎python/cpp/Makefile.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ check-dist: ## check python sdist and wheel with check-dist
6666
check-types: ## check python types with ty
6767
ty check --python $$(which python)
6868

69-
checks: check-dist
69+
checks: check-dist check-types
7070

7171
# alias
7272
check: checks

‎python/cpp/pyproject.toml.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ test-requires = ["pytest"]
110110
[tool.coverage.run]
111111
branch = true
112112
omit = [
113-
"{{ module }}/tests/integration/",
113+
"{{ module }}/tests/integration/*",
114114
]
115115

116116
[tool.coverage.report]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def add(i: int, j: int) -> int: ...

‎python/cppjswasm/Makefile.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ check-dist: ## check python sdist and wheel with check-dist
9797
check-types: ## check python types with ty
9898
ty check --python $$(which python)
9999

100-
checks: check-dist
100+
checks: check-dist check-types
101101

102102
# alias
103103
check: checks

‎python/cppjswasm/pyproject.toml.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ test-requires = ["pytest"]
122122
[tool.coverage.run]
123123
branch = true
124124
omit = [
125-
"{{ module }}/tests/integration/",
125+
"{{ module }}/tests/integration/*",
126126
]
127127

128128
[tool.coverage.report]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def add(i: int, j: int) -> int: ...

‎python/cython/Makefile.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ check-dist: ## check python sdist and wheel with check-dist
4040
check-types: ## check Python types (advisory)
4141
ty check {{ module }}
4242

43-
checks: check-dist ## run distribution checks
43+
checks: check-dist check-types ## run distribution checks
4444
check: checks
4545

4646
test: ## run Python tests

‎python/cython/pyproject.toml.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ replace = 'version = "{new_version}"'
8787
[tool.coverage.run]
8888
branch = true
8989
omit = [
90-
"{{ module }}/tests/integration/",
90+
"{{ module }}/tests/integration/*",
9191
"{{ module }}/_compiled.py",
9292
]
9393

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def add(left: int, right: int) -> int: ...

‎python/js/Makefile.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ check-dist: ## check python sdist and wheel with check-dist
7979
check-types: ## check python types with ty
8080
ty check --python $$(which python)
8181

82-
checks: check-dist
82+
checks: check-dist check-types
8383

8484
# alias
8585
check: checks

0 commit comments

Comments
 (0)