|
1 | 1 | [build-system] |
2 | | -requires = ["hatchling", "hatch-js"] |
| 2 | +requires = [ |
| 3 | + "hatchling", |
| 4 | + "hatch-js", |
| 5 | +] |
3 | 6 | build-backend="hatchling.build" |
4 | 7 |
|
5 | 8 | [project] |
6 | 9 | name = "python-template-js" |
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 JavaScript-Python project template" |
9 | 14 | readme = "README.md" |
10 | 15 | license = { text = "Apache-2.0" } |
@@ -41,6 +46,8 @@ develop = [ |
41 | 46 | "pytest-cov", |
42 | 47 | "ruff>=0.9,<0.15", |
43 | 48 | "twine", |
| 49 | + "ty", |
| 50 | + "uv", |
44 | 51 | "wheel", |
45 | 52 | ] |
46 | 53 |
|
@@ -105,37 +112,69 @@ artifacts = [ |
105 | 112 | src = "/" |
106 | 113 |
|
107 | 114 | [tool.hatch.build.targets.sdist] |
108 | | -packages = ["python_template_js", "js"] |
| 115 | +packages = [ |
| 116 | + "python_template_js", |
| 117 | + "js", |
| 118 | +] |
109 | 119 | exclude = [ |
110 | 120 | "/js/dist", |
111 | 121 | "/js/node_modules", |
112 | 122 | ] |
113 | 123 |
|
114 | 124 | [tool.hatch.build.targets.wheel] |
115 | | -packages = ["python_template_js"] |
116 | | -exclude = ["/js"] |
| 125 | +packages = [ |
| 126 | + "python_template_js", |
| 127 | +] |
| 128 | +exclude = [ |
| 129 | + "/js", |
| 130 | +] |
117 | 131 |
|
118 | 132 | [tool.hatch.build.hooks.hatch-js] |
119 | 133 | path = "js" |
120 | 134 | build_cmd = "build" |
121 | 135 | tool = "pnpm" |
122 | | -targets = ["python_template_js/extension/cdn/index.js"] |
| 136 | +targets = [ |
| 137 | + "python_template_js/extension/cdn/index.js", |
| 138 | +] |
123 | 139 |
|
124 | 140 | [tool.pytest.ini_options] |
125 | | -addopts = ["-vvv", "--junitxml=junit.xml"] |
| 141 | +addopts = [ |
| 142 | + "-vvv", |
| 143 | + "--junitxml=junit.xml", |
| 144 | +] |
126 | 145 | testpaths = "python_template_js/tests" |
127 | 146 |
|
128 | 147 | [tool.ruff] |
129 | 148 | line-length = 150 |
130 | 149 |
|
131 | 150 | [tool.ruff.lint] |
132 | | -extend-select = ["I"] |
| 151 | +extend-select = [ |
| 152 | + "I", |
| 153 | +] |
133 | 154 |
|
134 | 155 | [tool.ruff.lint.isort] |
135 | 156 | combine-as-imports = true |
136 | 157 | default-section = "third-party" |
137 | | -known-first-party = ["python_template_js"] |
138 | | -section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"] |
| 158 | +known-first-party = [ |
| 159 | + "python_template_js", |
| 160 | +] |
| 161 | +section-order = [ |
| 162 | + "future", |
| 163 | + "standard-library", |
| 164 | + "third-party", |
| 165 | + "first-party", |
| 166 | + "local-folder", |
| 167 | +] |
139 | 168 |
|
140 | 169 | [tool.ruff.lint.per-file-ignores] |
141 | | -"__init__.py" = ["F401", "F403"] |
| 170 | +"__init__.py" = [ |
| 171 | + "F401", |
| 172 | + "F403", |
| 173 | +] |
| 174 | + |
| 175 | +[tool.yardang] |
| 176 | +title = "python template js" |
| 177 | +root = "README.md" |
| 178 | +pages = [] |
| 179 | +use-autoapi = true |
| 180 | + |
0 commit comments