|
1 | 1 | [build-system] |
2 | | -requires = ["hatchling", "hatch-rs>=0.1.4"] |
| 2 | +requires = [ |
| 3 | + "hatchling", |
| 4 | + "hatch-rs>=0.1.4", |
| 5 | +] |
3 | 6 | build-backend="hatchling.build" |
4 | 7 |
|
5 | 8 | [project] |
6 | 9 | name = "python-template-rust" |
7 | | -authors = [{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}] |
| 10 | +authors = [ |
| 11 | + {name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}, |
| 12 | +] |
8 | 13 | description = "A Rust-Python project template" |
9 | 14 | readme = "README.md" |
10 | 15 | license = { text = "Apache-2.0" } |
@@ -43,6 +48,8 @@ develop = [ |
43 | 48 | "pytest-cov", |
44 | 49 | "ruff>=0.9,<0.15", |
45 | 50 | "twine", |
| 51 | + "ty", |
| 52 | + "uv", |
46 | 53 | "wheel", |
47 | 54 | ] |
48 | 55 |
|
@@ -93,7 +100,7 @@ ignore = [ |
93 | 100 | [tool.cibuildwheel] |
94 | 101 | build = "cp310-*" |
95 | 102 | test-command = "pytest -vvv {project}/python_template_rust/tests" |
96 | | -test-requires = ["pytest", "pytest-cov", "pytest-sugar", "pytest-xdist"] |
| 103 | +test-extras = "develop" |
97 | 104 |
|
98 | 105 | [tool.cibuildwheel.linux] |
99 | 106 | before-all = """ |
@@ -143,27 +150,58 @@ module = "python_template_rust" |
143 | 150 | path = "." |
144 | 151 |
|
145 | 152 | [tool.hatch.build.targets.sdist] |
146 | | -packages = ["python_template_rust", "/rust", "/src"] |
147 | | -sources = ["."] |
| 153 | +packages = [ |
| 154 | + "python_template_rust", |
| 155 | + "/rust", |
| 156 | + "/src", |
| 157 | +] |
| 158 | +sources = [ |
| 159 | + ".", |
| 160 | +] |
148 | 161 |
|
149 | 162 | [tool.hatch.build.targets.wheel] |
150 | | -packages = ["python_template_rust"] |
| 163 | +packages = [ |
| 164 | + "python_template_rust", |
| 165 | +] |
151 | 166 |
|
152 | 167 | [tool.pytest.ini_options] |
153 | | -addopts = ["-vvv", "--junitxml=junit.xml"] |
| 168 | +addopts = [ |
| 169 | + "-vvv", |
| 170 | + "--junitxml=junit.xml", |
| 171 | +] |
154 | 172 | testpaths = "python_template_rust/tests" |
155 | 173 |
|
156 | 174 | [tool.ruff] |
157 | 175 | line-length = 150 |
158 | 176 |
|
159 | 177 | [tool.ruff.lint] |
160 | | -extend-select = ["I"] |
| 178 | +extend-select = [ |
| 179 | + "I", |
| 180 | +] |
161 | 181 |
|
162 | 182 | [tool.ruff.lint.isort] |
163 | 183 | combine-as-imports = true |
164 | 184 | default-section = "third-party" |
165 | | -known-first-party = ["python_template_rust"] |
166 | | -section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] |
| 185 | +known-first-party = [ |
| 186 | + "python_template_rust", |
| 187 | +] |
| 188 | +section-order = [ |
| 189 | + "future", |
| 190 | + "standard-library", |
| 191 | + "third-party", |
| 192 | + "first-party", |
| 193 | + "local-folder", |
| 194 | +] |
167 | 195 |
|
168 | 196 | [tool.ruff.lint.per-file-ignores] |
169 | | -"__init__.py" = ["F401", "F403"] |
| 197 | +"__init__.py" = [ |
| 198 | + "F401", |
| 199 | + "F403", |
| 200 | +] |
| 201 | + |
| 202 | +[tool.yardang] |
| 203 | +title = "python template rust" |
| 204 | +root = "README.md" |
| 205 | +pages = [] |
| 206 | +use-autoapi = true |
| 207 | + |
0 commit comments