Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: b74d698
_commit: 5f83201
_src_path: https://github.com/python-project-templates/base.git
add_docs: true
add_extension: cpp
Expand Down
53 changes: 43 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ build-backend="hatchling.build"

[project]
name = "python-template-cpp"
authors = [{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}]
authors = [
{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"},
]
description = "A C++-Python project template"
readme = "README.md"
license = { text = "Apache-2.0" }
Expand Down Expand Up @@ -46,6 +48,8 @@ develop = [
"pytest-cov",
"ruff>=0.9,<0.15",
"twine",
"ty",
"uv",
"wheel",
]

Expand Down Expand Up @@ -85,7 +89,7 @@ ignore = [
[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-* cp313-*"
test-command = "echo 'TODO'"
test-requires = []
test-extras = "develop"

[tool.cibuildwheel.linux]
skip = "*i686 musllinux*"
Expand Down Expand Up @@ -125,30 +129,59 @@ src = "/"
[tool.hatch.build.hooks.hatch-cpp]
verbose = true
libraries = [
{name = "python_template_cpp/extension", sources = ["cpp/python-template-cpp/extension.cpp"], include-dirs = ["cpp"], binding="pybind11"}
{name = "python_template_cpp/extension", sources = ["cpp/python-template-cpp/extension.cpp"], include-dirs = ["cpp"], binding="pybind11"}
]

[tool.hatch.build.targets.sdist]
packages = ["python_template_cpp", "cpp"]
packages = [
"python_template_cpp",
"cpp",
]

[tool.hatch.build.targets.wheel]
packages = ["python_template_cpp"]
packages = [
"python_template_cpp",
]

[tool.pytest.ini_options]
addopts = ["-vvv", "--junitxml=junit.xml"]
addopts = [
"-vvv",
"--junitxml=junit.xml",
]
testpaths = "python_template_cpp/tests"

[tool.ruff]
line-length = 150

[tool.ruff.lint]
extend-select = ["I"]
extend-select = [
"I",
]

[tool.ruff.lint.isort]
combine-as-imports = true
default-section = "third-party"
known-first-party = ["python_template_cpp"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
known-first-party = [
"python_template_cpp",
]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]

[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]
"__init__.py" = [
"F401",
"F403",
]

[tool.yardang]
title = "python template cpp"
root = "README.md"
pages = []
use-autoapi = true


Loading