Skip to content

Commit 16b43c2

Browse files
committed
Move rust template to check-dist
1 parent 6b4a229 commit 16b43c2

2 files changed

Lines changed: 6 additions & 18 deletions

File tree

rust/Makefile.jinja

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ format: fix
7474
################
7575
# Other Checks #
7676
################
77-
.PHONY: check-manifest check-dist checks check
78-
79-
check-manifest: ## check python sdist manifest with check-manifest
80-
check-manifest -v
77+
.PHONY: check-dist check-types checks check
8178

8279
check-dist: ## check python sdist and wheel with check-dist
8380
check-dist -v
8481

85-
checks: check-manifest
82+
check-types: ## check python types with ty
83+
ty check --python $$(which python)
84+
85+
checks: check-dist
8686

8787
# alias
8888
check: checks

rust/pyproject.toml.jinja

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,6 @@ filename = "rust/Cargo.toml"
8686
search = 'version = "{current_version}"'
8787
replace = 'version = "{new_version}"'
8888

89-
[tool.check-manifest]
90-
ignore = [
91-
".copier-answers.yaml",
92-
"Cargo.toml",
93-
"Cargo.lock",
94-
"Makefile",
95-
"docs/**/*",
96-
"rust/**/*",
97-
"src/**/*",
98-
]
99-
10089
[tool.cibuildwheel]
10190
build = "cp310-*"
10291
test-command = "pytest -vvv {project}/{{module}}/tests"
@@ -152,14 +141,13 @@ path = "."
152141
[tool.hatch.build.targets.sdist]
153142
packages = [
154143
"{{module}}",
155-
]
156-
include = [
157144
"rust",
158145
"src",
159146
"Cargo.toml",
160147
"Cargo.lock",
161148
]
162149
exclude = [
150+
"rust/Makefile",
163151
"target",
164152
]
165153

0 commit comments

Comments
 (0)