Skip to content

Commit 9b4e0f3

Browse files
authored
Merge pull request #51 from python-project-templates/copier-update-2025-08-01T14-06-14
Update from copier (2025-08-01T14:06:14)
2 parents 3f788fa + f955745 commit 9b4e0f3

File tree

4 files changed

+37
-15
lines changed

4 files changed

+37
-15
lines changed

.copier-answers.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Changes here will be overwritten by Copier
2-
_commit: c53b04c
2+
_commit: 9642da9
33
_src_path: https://github.com/python-project-templates/base.git
44
add_docs: false
55
add_extension: python
6+
add_wiki: false
67
78
github: python-project-templates
89
project_description: Hatch plugin for C++ builds

Makefile

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
develop: ## install dependencies and build library
77
uv pip install -e .[develop]
88

9+
requirements: ## install prerequisite python build requirements
10+
python -m pip install --upgrade pip toml
11+
python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'`
12+
python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'`
13+
914
build: ## build the python library
1015
python -m build -n
1116

@@ -15,20 +20,27 @@ install: ## install library
1520
#########
1621
# LINTS #
1722
#########
18-
.PHONY: lint lints fix format
23+
.PHONY: lint-py lint-docs fix-py fix-docs lint lints fix format
1924

20-
lint: ## run python linter with ruff
25+
lint-py: ## lint python with ruff
2126
python -m ruff check hatch_cpp
2227
python -m ruff format --check hatch_cpp
2328

24-
# Alias
25-
lints: lint
29+
lint-docs: ## lint docs with mdformat and codespell
30+
python -m mdformat --check README.md
31+
python -m codespell_lib README.md
2632

27-
fix: ## fix python formatting with ruff
33+
fix-py: ## autoformat python code with ruff
2834
python -m ruff check --fix hatch_cpp
2935
python -m ruff format hatch_cpp
3036

31-
# alias
37+
fix-docs: ## autoformat docs with mdformat and codespell
38+
python -m mdformat README.md
39+
python -m codespell_lib --write README.md
40+
41+
lint: lint-py lint-docs ## run all linters
42+
lints: lint
43+
fix: fix-py fix-docs ## run all autoformatters
3244
format: fix
3345

3446
################

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ libraries = [
1919
```
2020

2121
For more complete systems, see:
22+
2223
- [scikit-build-core](https://github.com/scikit-build/scikit-build-core)
2324
- [setuptools](https://setuptools.pypa.io/en/latest/userguide/ext_modules.html)
2425

2526
## Environment Variables
26-
| Name | Default | Description |
27-
|:-----|:--------|:------------|
28-
|`CC`| | |
29-
|`CXX`| | |
30-
|`LD`| | |
31-
|`HATCH_CPP_PLATFORM`| | |
32-
|`HATCH_CPP_DISABLE_CCACHE`| | |
27+
28+
| Name | Default | Description |
29+
| :------------------------- | :------ | :---------- |
30+
| `CC` | | |
31+
| `CXX` | | |
32+
| `LD` | | |
33+
| `HATCH_CPP_PLATFORM` | | |
34+
| `HATCH_CPP_DISABLE_CCACHE` | | |
3335

3436
> [!NOTE]
3537
> This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ develop = [
4242
"build",
4343
"bump-my-version",
4444
"check-manifest",
45-
"ruff>=0.3,<0.13",
45+
"codespell>=2.4,<2.5",
46+
"hatchling",
47+
"mdformat>=0.7.22,<0.8",
48+
"mdformat-tables>=1",
49+
"pytest",
50+
"pytest-cov",
51+
"ruff",
4652
"twine",
4753
"uv",
4854
"wheel",
@@ -68,6 +74,7 @@ Homepage = "https://github.com/python-project-templates/hatch-cpp"
6874
current_version = "0.1.7"
6975
commit = true
7076
tag = false
77+
commit_args = "-s"
7178

7279
[[tool.bumpversion.files]]
7380
filename = "hatch_cpp/__init__.py"

0 commit comments

Comments
 (0)