@@ -8,7 +8,9 @@ build-backend="hatchling.build"
88
99[project]
1010name = "{{project_name_formatted}}"
11- authors = [{name = "{{team}}", email = "{{email}}"}]
11+ authors = [
12+ {name = "{{team}}", email = "{{email}}"},
13+ ]
1214description = "{{project_description}}"
1315readme = "README.md"
1416license = { text = "Apache-2.0" }
@@ -46,6 +48,8 @@ develop = [
4648 "pytest-cov",
4749 "ruff>=0.9,<0 .15 " ,
4850 " twine " ,
51+ " ty " ,
52+ " uv " ,
4953 " wheel " ,
5054]
5155
@@ -125,30 +129,61 @@ src = "/"
125129[tool.hatch.build.hooks.hatch-cpp]
126130verbose = true
127131libraries = [
128- {name = " {{module}} /extension " , sources = [" cpp /{{project_name_formatted}} /extension.cpp " ], include-dirs = [" cpp " ], binding=" pybind11 " }
132+ {name = " {{module}} /extension " , sources = [" cpp /{{project_name_formatted}} /extension.cpp " ], include-dirs = [" cpp " ], binding=" pybind11 " }
129133]
130134
131135[tool.hatch.build.targets.sdist]
132- packages = [" {{module}} " , " cpp " ]
136+ packages = [
137+ " {{module}} " ,
138+ " cpp " ,
139+ ]
133140
134141[tool.hatch.build.targets.wheel]
135- packages = [" {{module}} " ]
142+ packages = [
143+ " {{module}} " ,
144+ ]
136145
137146[tool.pytest.ini_options]
138- addopts = [" -vvv " , " --junitxml =junit.xml " ]
147+ addopts = [
148+ " -vvv " ,
149+ " --junitxml =junit.xml " ,
150+ ]
139151testpaths = " {{module}} /tests "
140152
141153[tool.ruff]
142154line-length = 150
143155
144156[tool.ruff.lint]
145- extend-select = [" I " ]
157+ extend-select = [
158+ " I " ,
159+ ]
146160
147161[tool.ruff.lint.isort]
148162combine-as-imports = true
149163default-section = " third-party "
150- known-first-party = [" {{module}} " ]
151- section-order = [" future " , " standard-library " , " third-party " , " first-party " , " local-folder " ]
164+ known-first-party = [
165+ " {{module}} " ,
166+ ]
167+ section-order = [
168+ " future " ,
169+ " standard-library " ,
170+ " third-party " ,
171+ " first-party " ,
172+ " local-folder " ,
173+ ]
152174
153175[tool.ruff.lint.per-file-ignores]
154- " __init__.py " = [" F401 " , " F403 " ]
176+ " __init__.py " = [
177+ " F401 " ,
178+ " F403 " ,
179+ ]
180+
181+ {%- if add_docs %}
182+
183+ [tool.yardang]
184+ title = " {{ project_name }} "
185+ root = " README.md "
186+ pages = []
187+ use-autoapi = true
188+ {% endif %}
189+
0 commit comments