File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ add_wiki: true
44add_extension : rustjswasm
55email : 3105306+timkpaine@users.noreply.github.com
66github : python-project-templates
7- project_description : A Rust-Python project template
7+ project_description : A Rust-JavaScript- Python project template
88project_name : python template rustjswasm
99python_version_primary : ' 3.11'
1010team : Python Project Template Authors
Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ format: fix
7373################
7474# Other Checks #
7575################
76- .PHONY: check-manifest check-dist checks check
77-
78- check-manifest: ## check python sdist manifest with check-manifest
79- check-manifest -v
76+ .PHONY: check-dist check-types checks check
8077
8178check-dist: ## check python sdist and wheel with check-dist
8279 check-dist -v
8380
84- checks: check-manifest
81+ check-types: ## check python types with ty
82+ ty check --python $$(which python)
83+
84+ checks: check-dist
8585
8686# alias
8787check: checks
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ develop = [
3737 "build",
3838 "bump-my-version",
3939 "check-dist",
40- "check-manifest",
4140 "codespell",
4241 "hatch-js",
4342 "hatchling",
@@ -79,17 +78,6 @@ filename = "js/package.json"
7978search = '"version": "{current_version}"'
8079replace = '"version": "{new_version}"'
8180
82- [tool.check-manifest]
83- ignore = [
84- ".copier-answers.yaml",
85- "js/pnpm-lock.yaml",
86- "Makefile",
87- ".vscode/*",
88- "{{module}}/extension/**/*",
89- "docs/**/*",
90- "js/dist/**/*",
91- ]
92-
9381[tool.coverage.run]
9482branch = true
9583omit = [
@@ -118,16 +106,16 @@ packages = [
118106 "js",
119107]
120108exclude = [
121- "/ js/dist",
122- "/ js/node_modules",
109+ "js/dist",
110+ "js/node_modules",
123111]
124112
125113[tool.hatch.build.targets.wheel]
126114packages = [
127115 "{{module}}",
128116]
129117exclude = [
130- "/ js",
118+ "js",
131119]
132120
133121[tool.hatch.build.hooks.hatch-js]
Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ format: fix
7373################
7474# Other Checks #
7575################
76- .PHONY: check-manifest check-dist checks check
77-
78- check-manifest: ## check python sdist manifest with check-manifest
79- check-manifest -v
76+ .PHONY: check-dist check-types checks check
8077
8178check-dist: ## check python sdist and wheel with check-dist
8279 check-dist -v
8380
84- checks: check-manifest
81+ check-types: ## check python types with ty
82+ ty check --python $$(which python)
83+
84+ checks: check-dist
8585
8686# alias
8787check: checks
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ develop = [
4040 "build",
4141 "bump-my-version",
4242 "check-dist",
43- "check-manifest",
4443 "codespell",
4544 "hatch-js",
4645 "hatchling",
@@ -83,20 +82,6 @@ filename = "js/package.json"
8382search = '" version " : " {current_version} " '
8483replace = '" version " : " {new_version} " '
8584
86- [tool.check-manifest]
87- ignore = [
88- " .copier-answers.yaml " ,
89- " js /pnpm-lock.yaml " ,
90- " Makefile " ,
91- " .vscode /* " ,
92- " {{module}} /extension /** " ,
93- " {{module}} /labextension /** " ,
94- " {{module}} /nbextension /** " ,
95- " docs /** /* " ,
96- " js /dist /** /* " ,
97- " js /lib /* " ,
98- ]
99-
10085[tool.coverage.run]
10186branch = true
10287omit = [
@@ -126,16 +111,16 @@ packages = [
126111 " js " ,
127112]
128113exclude = [
129- " / js /dist " ,
130- " / js /node_modules " ,
114+ " js /dist " ,
115+ " js /node_modules " ,
131116]
132117
133118[tool.hatch.build.targets.wheel]
134119packages = [
135120 " {{module}} " ,
136121]
137122exclude = [
138- " / js "
123+ " js "
139124]
140125
141126[tool.hatch.build.targets.wheel.shared-data]
Original file line number Diff line number Diff 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-rs",
Original file line number Diff line number Diff line change @@ -88,15 +88,15 @@ format: fix
8888################
8989# Other Checks #
9090################
91- .PHONY: check-manifest check-dist checks check
92-
93- check-manifest: ## check python sdist manifest with check-manifest
94- check-manifest -v
91+ .PHONY: check-dist check-types checks check
9592
9693check-dist: ## check python sdist and wheel with check-dist
9794 check-dist -v
9895
99- checks: check-manifest
96+ check-types: ## check python types with ty
97+ ty check --python $$(which python)
98+
99+ checks: check-dist
100100
101101# alias
102102check: checks
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ develop = [
3939 "build",
4040 "bump-my-version",
4141 "check-dist",
42- "check-manifest",
4342 "cibuildwheel",
4443 "codespell",
4544 "hatch-js",
@@ -98,21 +97,6 @@ filename = "rust/Cargo.toml"
9897search = 'version = "{current_version}"'
9998replace = 'version = "{new_version}"'
10099
101- [tool.check-manifest]
102- ignore = [
103- ".copier-answers.yaml",
104- "Cargo.toml",
105- "Cargo.lock",
106- "js/pnpm-lock.yaml",
107- "Makefile",
108- ".vscode/*",
109- "{{module}}/extension/**/*",
110- "docs/**/*",
111- "js/**/*",
112- "rust/**/*",
113- "src/**/*",
114- ]
115-
116100[tool.cibuildwheel]
117101build = "cp310-*"
118102test-command = "pytest -vvv {project}/{{module}}/tests"
@@ -165,8 +149,6 @@ path = "."
165149[tool.hatch.build.targets.sdist]
166150packages = [
167151 "{{module}}",
168- ]
169- include = [
170152 "js",
171153 "rust",
172154 "src",
@@ -175,6 +157,7 @@ include = [
175157]
176158exclude = [
177159 "js/node_modules",
160+ "rust/Makefile",
178161 "target",
179162]
180163
You can’t perform that action at this time.
0 commit comments