|
1 | 1 | [build-system] |
2 | | -requires = ["hatchling"] |
| 2 | +requires = [ |
| 3 | + "hatchling", |
| 4 | +] |
3 | 5 | build-backend="hatchling.build" |
4 | 6 |
|
5 | 7 | [project] |
6 | 8 | name = "python-template" |
7 | | -authors = [{name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}] |
| 9 | +authors = [ |
| 10 | + {name = "Python Project Template Authors", email = "3105306+timkpaine@users.noreply.github.com"}, |
| 11 | +] |
8 | 12 | description = "A pure-python project template" |
9 | 13 | readme = "README.md" |
10 | 14 | license = { text = "Apache-2.0" } |
@@ -40,6 +44,7 @@ develop = [ |
40 | 44 | "pytest-cov", |
41 | 45 | "ruff>=0.9,<0.15", |
42 | 46 | "twine", |
| 47 | + "ty", |
43 | 48 | "uv", |
44 | 49 | "wheel", |
45 | 50 | ] |
@@ -94,31 +99,51 @@ artifacts = [] |
94 | 99 | src = "/" |
95 | 100 |
|
96 | 101 | [tool.hatch.build.targets.sdist] |
97 | | -packages = ["python_template"] |
| 102 | +packages = [ |
| 103 | + "python_template", |
| 104 | +] |
98 | 105 |
|
99 | 106 | [tool.hatch.build.targets.wheel] |
100 | | -packages = ["python_template"] |
| 107 | +packages = [ |
| 108 | + "python_template", |
| 109 | +] |
101 | 110 |
|
102 | 111 | [tool.hatch.build.targets.wheel.shared-data] |
103 | 112 |
|
104 | 113 | [tool.pytest.ini_options] |
105 | | -addopts = ["-vvv", "--junitxml=junit.xml"] |
| 114 | +addopts = [ |
| 115 | + "-vvv", |
| 116 | + "--junitxml=junit.xml", |
| 117 | +] |
106 | 118 | testpaths = "python_template/tests" |
107 | 119 |
|
108 | 120 | [tool.ruff] |
109 | 121 | line-length = 150 |
110 | 122 |
|
111 | 123 | [tool.ruff.lint] |
112 | | -extend-select = ["I"] |
| 124 | +extend-select = [ |
| 125 | + "I", |
| 126 | +] |
113 | 127 |
|
114 | 128 | [tool.ruff.lint.isort] |
115 | 129 | combine-as-imports = true |
116 | 130 | default-section = "third-party" |
117 | | -known-first-party = ["python_template"] |
118 | | -section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] |
| 131 | +known-first-party = [ |
| 132 | + "python_template", |
| 133 | +] |
| 134 | +section-order = [ |
| 135 | + "future", |
| 136 | + "standard-library", |
| 137 | + "third-party", |
| 138 | + "first-party", |
| 139 | + "local-folder", |
| 140 | +] |
119 | 141 |
|
120 | 142 | [tool.ruff.lint.per-file-ignores] |
121 | | -"__init__.py" = ["F401", "F403"] |
| 143 | +"__init__.py" = [ |
| 144 | + "F401", |
| 145 | + "F403", |
| 146 | +] |
122 | 147 |
|
123 | 148 | [tool.yardang] |
124 | 149 | title = "python template" |
|
0 commit comments