Skip to content

Commit a5923ff

Browse files
Update from copier (2026-02-15T05:59:08)
Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 2076e17 commit a5923ff

File tree

3 files changed

+51
-13
lines changed

3 files changed

+51
-13
lines changed

.copier-answers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: b74d698
2+
_commit: 37f89c1
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: rust

pyproject.toml

Lines changed: 49 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
[build-system]
2-
requires = ["hatchling", "hatch-rs>=0.1.4"]
2+
requires = [
3+
"hatchling",
4+
"hatch-rs>=0.1.4",
5+
]
36
build-backend="hatchling.build"
47

58
[project]
69
name = "python-template-rust"
7-
authors = [{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}]
10+
authors = [
11+
{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"},
12+
]
813
description = "A Rust-Python project template"
914
readme = "README.md"
1015
license = { text = "Apache-2.0" }
@@ -43,6 +48,8 @@ develop = [
4348
"pytest-cov",
4449
"ruff>=0.9,<0.15",
4550
"twine",
51+
"ty",
52+
"uv",
4653
"wheel",
4754
]
4855

@@ -93,7 +100,7 @@ ignore = [
93100
[tool.cibuildwheel]
94101
build = "cp310-*"
95102
test-command = "pytest -vvv {project}/python_template_rust/tests"
96-
test-requires = ["pytest", "pytest-cov", "pytest-sugar", "pytest-xdist"]
103+
test-extras = "develop"
97104

98105
[tool.cibuildwheel.linux]
99106
before-all = """
@@ -143,27 +150,58 @@ module = "python_template_rust"
143150
path = "."
144151

145152
[tool.hatch.build.targets.sdist]
146-
packages = ["python_template_rust", "/rust", "/src"]
147-
sources = ["."]
153+
packages = [
154+
"python_template_rust",
155+
"/rust",
156+
"/src",
157+
]
158+
sources = [
159+
".",
160+
]
148161

149162
[tool.hatch.build.targets.wheel]
150-
packages = ["python_template_rust"]
163+
packages = [
164+
"python_template_rust",
165+
]
151166

152167
[tool.pytest.ini_options]
153-
addopts = ["-vvv", "--junitxml=junit.xml"]
168+
addopts = [
169+
"-vvv",
170+
"--junitxml=junit.xml",
171+
]
154172
testpaths = "python_template_rust/tests"
155173

156174
[tool.ruff]
157175
line-length = 150
158176

159177
[tool.ruff.lint]
160-
extend-select = ["I"]
178+
extend-select = [
179+
"I",
180+
]
161181

162182
[tool.ruff.lint.isort]
163183
combine-as-imports = true
164184
default-section = "third-party"
165-
known-first-party = ["python_template_rust"]
166-
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
185+
known-first-party = [
186+
"python_template_rust",
187+
]
188+
section-order = [
189+
"future",
190+
"standard-library",
191+
"third-party",
192+
"first-party",
193+
"local-folder",
194+
]
167195

168196
[tool.ruff.lint.per-file-ignores]
169-
"__init__.py" = ["F401", "F403"]
197+
"__init__.py" = [
198+
"F401",
199+
"F403",
200+
]
201+
202+
[tool.yardang]
203+
title = "python template rust"
204+
root = "README.md"
205+
pages = []
206+
use-autoapi = true
207+

rust/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
requirements: ## install required dev dependencies
44
rustup component add rustfmt
55
rustup component add clippy
6-
cargo install cargo-nextest --force
6+
cargo install cargo-nextest --locked --force
77
cargo install cargo-llvm-cov --force
88

99
develop: requirements ## install required dev dependencies

0 commit comments

Comments
 (0)