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/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]: 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",