From 29b1b66718aa6fce8c5af0620494a081fc2641d1 Mon Sep 17 00:00:00 2001 From: "python-templates-copier-update[bot]" Date: Sun, 8 Nov 2026 11:59:26 +0000 Subject: [PATCH 1/2] Update from Copier (2026-11-08T11-59-23Z) Signed-off-by: python-templates-copier-update[bot] --- .copier-answers.yaml | 2 +- .github/workflows/build.yaml | 8 ++++---- pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 7c48d07..516cc40 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 2d2a72d +_commit: 02f55bd _src_path: https://github.com/python-project-templates/base.git add_docs: false add_extension: python diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 540688b..d55ecd6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,7 +34,7 @@ jobs: persist-credentials: false - name: Setup Python - uses: actions-ext/python/setup@c8228d827a81b9f8c808825328af361c45461ba3 + uses: actions-ext/python/setup@c7ef9cbf13bc854a8d1422e9f8c6ee7a7ce1b911 with: version: "3.11" @@ -61,7 +61,7 @@ jobs: if: always() - name: Publish test results - uses: EnricoMi/publish-unit-test-result-action@d0a4676d0e0b938bc201470d88276b7c74c712b3 # v2.24.0 + uses: EnricoMi/publish-unit-test-result-action@7622c5bf3d112a72ab4fa3951c2aa5723d8ab92d # v2.25.0 with: files: '**/junit.xml' @@ -74,12 +74,12 @@ jobs: run: make dist - name: Test wheel - uses: actions-ext/python/test-wheel@c8228d827a81b9f8c808825328af361c45461ba3 + uses: actions-ext/python/test-wheel@c7ef9cbf13bc854a8d1422e9f8c6ee7a7ce1b911 with: module: hatch_build - name: Test source distribution - uses: actions-ext/python/test-sdist@c8228d827a81b9f8c808825328af361c45461ba3 + uses: actions-ext/python/test-sdist@c7ef9cbf13bc854a8d1422e9f8c6ee7a7ce1b911 with: module: hatch_build diff --git a/pyproject.toml b/pyproject.toml index c60cf81..8b89acd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,7 +46,7 @@ develop = [ "codespell", "hatchling", "mdformat", - "mdformat-frontmatter", + "mdformat-myst", "mdformat-tables>=1", "pydantic>=2,<3", "pytest", From 268a54ab4da86353406b1bb778d00deb50df8e9c Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sun, 8 Nov 2026 12:32:20 -0500 Subject: [PATCH 2/2] Remove redundant model parsing cast Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com> --- hatch_build/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hatch_build/cli.py b/hatch_build/cli.py index eb5215f..0cdc4c6 100644 --- a/hatch_build/cli.py +++ b/hatch_build/cli.py @@ -1,6 +1,6 @@ from argparse import ArgumentParser from collections.abc import Callable -from typing import TYPE_CHECKING, Any, TypeVar, cast +from typing import TYPE_CHECKING, Any, TypeVar from hatchling.cli.build import build_command from p2a import parse_extra_args_model as base_parse_extra_args_model @@ -25,7 +25,7 @@ def parse_extra_args(subparser: ArgumentParser | None = None) -> tuple[dict[str, def parse_extra_args_model(model: ModelT) -> tuple[ModelT, list[str]]: - return cast(tuple[ModelT, list[str]], base_parse_extra_args_model(model, _extras or [])) + return base_parse_extra_args_model(model, _extras or []) def _hatchling_internal() -> tuple[Callable | None, dict | None, list[str] | None]: