Skip to content

Commit 08a244d

Browse files
authored
Merge pull request #120 from python-project-templates/tkp/cp
Move cpp templates to check-dist
2 parents b15e34d + 1405328 commit 08a244d

4 files changed

Lines changed: 10 additions & 38 deletions

File tree

cpp/Makefile.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ format: fix
6161
################
6262
# Other Checks #
6363
################
64-
.PHONY: check-manifest check-dist checks check
65-
66-
check-manifest: ## check python sdist manifest with check-manifest
67-
check-manifest -v
64+
.PHONY: check-dist check-types checks check
6865

6966
check-dist: ## check python sdist and wheel with check-dist
7067
check-dist -v
7168

72-
checks: check-manifest
69+
check-types: ## check python types with ty
70+
ty check --python $$(which python)
71+
72+
checks: check-dist
7373

7474
# alias
7575
check: checks

cpp/pyproject.toml.jinja

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ develop = [
3838
"build",
3939
"bump-my-version",
4040
"check-dist",
41-
"check-manifest",
4241
"cibuildwheel",
4342
"codespell",
4443
"hatch-cpp",
@@ -77,17 +76,6 @@ filename = "pyproject.toml"
7776
search = 'version = "{current_version}"'
7877
replace = 'version = "{new_version}"'
7978

80-
[tool.check-manifest]
81-
ignore = [
82-
".copier-answers.yaml",
83-
".clang-format",
84-
"Makefile",
85-
"docs/**/*",
86-
"{{module}}/*.dll",
87-
"{{module}}/*.dylib",
88-
"{{module}}/*.so",
89-
]
90-
9179
[tool.cibuildwheel]
9280
build = "cp310-* cp311-* cp312-* cp313-*"
9381
test-command = "echo 'TODO'"

cppjswasm/Makefile.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ format: fix
9191
################
9292
# Other Checks #
9393
################
94-
.PHONY: check-manifest check-dist checks check
95-
96-
check-manifest: ## check python sdist manifest with check-manifest
97-
check-manifest -v
94+
.PHONY: check-dist check-types checks check
9895

9996
check-dist: ## check python sdist and wheel with check-dist
10097
check-dist -v
10198

102-
checks: check-manifest
99+
check-types: ## check python types with ty
100+
ty check --python $$(which python)
101+
102+
checks: check-dist
103103

104104
# alias
105105
check: checks

cppjswasm/pyproject.toml.jinja

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ develop = [
4040
"build",
4141
"bump-my-version",
4242
"check-dist",
43-
"check-manifest",
4443
"cibuildwheel",
4544
"codespell",
4645
"hatch-cpp<0.3",
@@ -85,21 +84,6 @@ filename = "js/package.json"
8584
search = '"version": "{current_version}"'
8685
replace = '"version": "{new_version}"'
8786

88-
[tool.check-manifest]
89-
ignore = [
90-
".copier-answers.yaml",
91-
".clang-format",
92-
"js/pnpm-lock.yaml",
93-
"Makefile",
94-
".vscode/*",
95-
"{{module}}/extension/**/*",
96-
"{{module}}/*.dll",
97-
"{{module}}/*.dylib",
98-
"{{module}}/*.so",
99-
"docs/**/*",
100-
"js/dist/**/*",
101-
]
102-
10387
[tool.cibuildwheel]
10488
build = "cp310-*"
10589
test-command = "pytest -vvv {project}/{{module}}/tests"

0 commit comments

Comments
 (0)