From cae25e494c016c6fbee82ecbcb0e068b6fd38c34 Mon Sep 17 00:00:00 2001 From: "python-templates-copier-update[bot]" Date: Sun, 11 Oct 2026 11:26:09 +0000 Subject: [PATCH] Update from Copier (2026-10-11T11-26-06Z) Signed-off-by: python-templates-copier-update[bot] --- .copier-answers.yaml | 2 +- .github/workflows/build.yaml | 2 +- Cargo.lock | 8 ++++---- Makefile | 10 +++++----- pyproject.toml | 22 +++++++++++++--------- 5 files changed, 24 insertions(+), 20 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 3c30d7b..64058e5 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: ebb6e1c +_commit: '4372075' _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: rust diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 77d1b1e..7258c17 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,7 +15,7 @@ on: workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: diff --git a/Cargo.lock b/Cargo.lock index 97403d9..2ac6d1a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,18 +10,18 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" [[package]] name = "inventory" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4f0c30c76f2f4ccee3fe55a2435f691ca00c0e4bd87abe4f4a851b1d4dac39b" +checksum = "6928282826c822ad91bf1c9a1cb90a30ba1c26770749929b4656cd6be829cd7c" dependencies = [ "rustversion", ] [[package]] name = "libc" -version = "0.2.189" +version = "0.2.190" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78" [[package]] name = "once_cell" diff --git a/Makefile b/Makefile index fa79300..b75e439 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,8 @@ lint-rs: ## run rust linter make -C rust lint lint-docs: ## lint docs with mdformat and codespell - python -m mdformat --check README.md docs/wiki/ - python -m codespell_lib README.md docs/wiki/ + python -m mdformat --check README.md $(wildcard docs/src) docs/wiki/ + python -m codespell_lib README.md $(wildcard docs/src) docs/wiki/ lint: lint-rs lint-py lint-docs ## run project linters @@ -61,8 +61,8 @@ fix-rs: ## fix rust formatting make -C rust fix fix-docs: ## autoformat docs with mdformat and codespell - python -m mdformat README.md docs/wiki/ - python -m codespell_lib --write README.md docs/wiki/ + python -m mdformat README.md $(wildcard docs/src) docs/wiki/ + python -m codespell_lib --write README.md $(wildcard docs/src) docs/wiki/ fix: fix-rs fix-py fix-docs ## run project autoformatters @@ -80,7 +80,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/pyproject.toml b/pyproject.toml index a72fb04..a87084f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ develop = [ "hatch-rs>=0.3.0", "hatchling", "mdformat", + "mdformat-frontmatter", "mdformat-tables>=1", "pytest", "pytest-cov", @@ -65,7 +66,8 @@ tag = true commit_args = "-s" pre_commit_hooks = [ "cargo update --workspace", - "git add Cargo.lock", + "cargo update --manifest-path rust/Cargo.toml --workspace", + "git add Cargo.lock rust/Cargo.lock", ] [[tool.bumpversion.files]] @@ -121,7 +123,7 @@ xbuild-tools = ["cargo", "rustc", "rustup"] [tool.coverage.run] branch = true omit = [ - "python_template_rust/tests/integration/", + "python_template_rust/tests/integration/*", ] [tool.coverage.report] @@ -133,13 +135,6 @@ exclude_also = [ ignore_errors = true fail_under = 50 -[tool.hatch.build] -artifacts = [ - "python_template_rust/*.dll", - "python_template_rust/*.dylib", - "python_template_rust/*.so", -] - [tool.hatch.build.sources] src = "/" @@ -157,11 +152,20 @@ packages = [ "Cargo.lock", ] exclude = [ + "*.dll", + "*.dylib", + "*.so", + "*.pyd", "rust/Makefile", "target", ] [tool.hatch.build.targets.wheel] +artifacts = [ + "python_template_rust/*.dll", + "python_template_rust/*.dylib", + "python_template_rust/*.so", +] packages = [ "python_template_rust", ]