From a5923ffbff22d14213300dae15fc86510f571751 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 15 Feb 2026 05:59:08 +0000 Subject: [PATCH] Update from copier (2026-02-15T05:59:08) Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- .copier-answers.yaml | 2 +- pyproject.toml | 60 ++++++++++++++++++++++++++++++++++++-------- rust/Makefile | 2 +- 3 files changed, 51 insertions(+), 13 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 7fe8176..4d4c318 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: b74d698 +_commit: 37f89c1 _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: rust diff --git a/pyproject.toml b/pyproject.toml index f325917..11f06c6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,15 @@ [build-system] -requires = ["hatchling", "hatch-rs>=0.1.4"] +requires = [ + "hatchling", + "hatch-rs>=0.1.4", +] build-backend="hatchling.build" [project] name = "python-template-rust" -authors = [{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}] +authors = [ + {name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}, +] description = "A Rust-Python project template" readme = "README.md" license = { text = "Apache-2.0" } @@ -43,6 +48,8 @@ develop = [ "pytest-cov", "ruff>=0.9,<0.15", "twine", + "ty", + "uv", "wheel", ] @@ -93,7 +100,7 @@ ignore = [ [tool.cibuildwheel] build = "cp310-*" test-command = "pytest -vvv {project}/python_template_rust/tests" -test-requires = ["pytest", "pytest-cov", "pytest-sugar", "pytest-xdist"] +test-extras = "develop" [tool.cibuildwheel.linux] before-all = """ @@ -143,27 +150,58 @@ module = "python_template_rust" path = "." [tool.hatch.build.targets.sdist] -packages = ["python_template_rust", "/rust", "/src"] -sources = ["."] +packages = [ + "python_template_rust", + "/rust", + "/src", +] +sources = [ + ".", +] [tool.hatch.build.targets.wheel] -packages = ["python_template_rust"] +packages = [ + "python_template_rust", +] [tool.pytest.ini_options] -addopts = ["-vvv", "--junitxml=junit.xml"] +addopts = [ + "-vvv", + "--junitxml=junit.xml", +] testpaths = "python_template_rust/tests" [tool.ruff] line-length = 150 [tool.ruff.lint] -extend-select = ["I"] +extend-select = [ + "I", +] [tool.ruff.lint.isort] combine-as-imports = true default-section = "third-party" -known-first-party = ["python_template_rust"] -section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] +known-first-party = [ + "python_template_rust", +] +section-order = [ + "future", + "standard-library", + "third-party", + "first-party", + "local-folder", +] [tool.ruff.lint.per-file-ignores] -"__init__.py" = ["F401", "F403"] +"__init__.py" = [ + "F401", + "F403", +] + +[tool.yardang] +title = "python template rust" +root = "README.md" +pages = [] +use-autoapi = true + diff --git a/rust/Makefile b/rust/Makefile index 7d8e168..de9c2a3 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -3,7 +3,7 @@ requirements: ## install required dev dependencies rustup component add rustfmt rustup component add clippy - cargo install cargo-nextest --force + cargo install cargo-nextest --locked --force cargo install cargo-llvm-cov --force develop: requirements ## install required dev dependencies