Skip to content

Commit 8609689

Browse files
authored
Merge pull request #104 from python-project-templates/copier-update-2026-10-11T11-26-00Z
Update from Copier (2026-10-11T11-26-00Z)
2 parents f305e63 + 507de05 commit 8609689

5 files changed

Lines changed: 16 additions & 15 deletions

File tree

‎.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: ebb6e1c
2+
_commit: '4372075'
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: true
55
add_extension: cpp

‎.github/workflows/build.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
workflow_dispatch:
1616

1717
concurrency:
18-
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
group: ${{ github.workflow }}-${{ github.ref }}
1919
cancel-in-progress: true
2020

2121
permissions:

‎Makefile‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ lint-cpp: ## run cpp linter
3030
clang-format --dry-run -Werror -i -style=file `find ./cpp -name "*.*pp"`
3131

3232
lint-docs: ## lint docs with mdformat and codespell
33-
python -m mdformat --check README.md docs/wiki/
34-
python -m codespell_lib README.md docs/wiki/
33+
python -m mdformat --check README.md $(wildcard docs/src) docs/wiki/
34+
python -m codespell_lib README.md $(wildcard docs/src) docs/wiki/
3535

3636
lint: lint-cpp lint-py ## run project linters
3737

@@ -47,8 +47,8 @@ fix-cpp: ## fix cpp formatting
4747
clang-format -i -style=file `find ./cpp -name "*.*pp"`
4848

4949
fix-docs: ## autoformat docs with mdformat and codespell
50-
python -m mdformat README.md docs/wiki/
51-
python -m codespell_lib --write README.md docs/wiki/
50+
python -m mdformat README.md $(wildcard docs/src) docs/wiki/
51+
python -m codespell_lib --write README.md $(wildcard docs/src) docs/wiki/
5252

5353
fix: fix-cpp fix-py fix-docs ## run project autoformatters
5454

@@ -66,7 +66,7 @@ check-dist: ## check python sdist and wheel with check-dist
6666
check-types: ## check python types with ty
6767
ty check --python $$(which python)
6868

69-
checks: check-dist
69+
checks: check-dist check-types
7070

7171
# alias
7272
check: checks

‎pyproject.toml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ develop = [
4242
"hatch-cpp>=0.5.0",
4343
"hatchling",
4444
"mdformat",
45+
"mdformat-frontmatter",
4546
"mdformat-tables>=1",
4647
"pybind11",
4748
"pytest",
@@ -101,7 +102,7 @@ test-requires = ["pytest"]
101102
[tool.coverage.run]
102103
branch = true
103104
omit = [
104-
"python_template_cpp/tests/integration/",
105+
"python_template_cpp/tests/integration/*",
105106
]
106107

107108
[tool.coverage.report]
@@ -113,13 +114,6 @@ exclude_also = [
113114
ignore_errors = true
114115
fail_under = 50
115116

116-
[tool.hatch.build]
117-
artifacts = [
118-
"python_template_cpp/*.dll",
119-
"python_template_cpp/*.dylib",
120-
"python_template_cpp/*.so",
121-
]
122-
123117
[tool.hatch.build.sources]
124118
src = "/"
125119

@@ -130,6 +124,7 @@ libraries = [
130124
]
131125

132126
[tool.hatch.build.targets.sdist]
127+
exclude = ["*.dll", "*.dylib", "*.so", "*.pyd"]
133128
packages = [
134129
"python_template_cpp",
135130
"cpp",
@@ -141,6 +136,11 @@ packages = [
141136

142137

143138
[tool.hatch.build.targets.wheel]
139+
artifacts = [
140+
"python_template_cpp/*.dll",
141+
"python_template_cpp/*.dylib",
142+
"python_template_cpp/*.so",
143+
]
144144
packages = [
145145
"python_template_cpp",
146146
]

‎python_template_cpp/extension.pyi‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
def add(i: int, j: int) -> int: ...

0 commit comments

Comments
 (0)