-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (98 loc) · 2.92 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (98 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cppboot"
dynamic = ["version"]
description = "Bootstrap a professional-grade C++ project environment"
readme = "README.md"
requires-python = ">=3.9"
license = { file = "LICENSE" }
authors = [{ name = "cppboot contributors" }]
keywords = ["c++", "cmake", "bootstrap", "scaffold", "project-generator"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Software Development :: Build Tools",
"Topic :: Software Development :: Code Generators",
"Typing :: Typed",
]
dependencies = []
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"ruff>=0.9.0",
"mypy>=1.8.0",
"build>=1.2.0",
"twine>=5.0.0",
]
[project.scripts]
cppboot = "cppboot.cli:main"
[project.urls]
Homepage = "https://github.com/bluesentinelsec/cppboot"
Repository = "https://github.com/bluesentinelsec/cppboot"
Issues = "https://github.com/bluesentinelsec/cppboot/issues"
Changelog = "https://github.com/bluesentinelsec/cppboot/blob/main/CHANGELOG.md"
[tool.setuptools.dynamic]
version = { attr = "cppboot._version.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
cppboot = ["py.typed"]
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["tests"]
pythonpath = ["src", "."]
addopts = ["-ra", "--strict-markers"]
markers = [
"requires_git: needs a git executable on PATH",
"requires_make: needs make (and usually clang-format) on PATH",
]
[tool.coverage.run]
source = ["cppboot"]
branch = true
[tool.ruff]
target-version = "py39"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # bugbear
"UP", # pyupgrade
"SIM", # simplify
]
ignore = [
"E501", # line length handled by formatter preference; templates are long
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["B011"]
# Embedded Makefile/batch/CMake templates intentionally mix tabs and spaces.
"src/cppboot/generate/**" = ["E101"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
# Type-check against 3.10+ (current mypy floor). Runtime support includes 3.9 (see CI).
python_version = "3.10"
mypy_path = "src"
packages = ["cppboot"]
strict = true
warn_unused_configs = true
show_error_codes = true
pretty = true