You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✔ Writing 'pyproject.toml' and initializing project.
109
110
✔ Writing 'README.md'.
110
111
☐ Populate 'README.md' to help users understand the project.
112
+
✔ Adding recommended documentation tools.
113
+
☐ Run 'uv run mkdocs build' to build the documentation.
114
+
☐ Run 'uv run mkdocs serve' to serve the documentation locally.
111
115
✔ Adding recommended linters.
112
116
☐ Run 'uv run ruff check --fix' to run the Ruff linter with autofixes.
113
117
☐ Run 'uv run deptry src' to run deptry.
@@ -177,6 +181,7 @@ Initialize a new Python project with recommended defaults, including:
177
181
178
182
Supported options:
179
183
184
+
-`--doc` to add recommended documentation tools (default; or `--no-doc` to opt-out)
180
185
-`--format` to add recommended formatters (default; or `--no-format` to opt-out)
181
186
-`--lint` to add recommended linters (default; or `--no-lint` to opt-out)
182
187
-`--spellcheck` to add a recommended spellchecker (default; or `--no-spellcheck` to opt-out)
@@ -203,6 +208,26 @@ Supported options:
203
208
-`--quiet` to suppress output
204
209
-`--frozen` to leave the virtual environment and lockfile unchanged (i.e. do not install dependencies, nor update lockfiles)
205
210
211
+
### `usethis doc`
212
+
213
+
Add recommended documentation tools to the project (namely, [MkDocs](https://www.mkdocs.org/)), including:
214
+
215
+
- declared & installed dependencies via `uv add`,
216
+
- relevant `pyproject.toml` configuration, and
217
+
- any other relevant directories or tool-bespoke configuration files.
218
+
219
+
Note if `pyproject.toml` is not present, it will be created, since this is required for declaring dependencies via `uv add`.
220
+
221
+
Supported options:
222
+
223
+
-`--remove` to remove the tool instead of adding it
224
+
-`--how` to only print how to use the tool, with no other side effects
225
+
-`--offline` to disable network access and rely on caches
226
+
-`--frozen` to leave the virtual environment and lockfile unchanged
227
+
-`--quiet` to suppress output
228
+
229
+
See [`usethis tool`](#usethis-tool) for more information.
230
+
206
231
### `usethis format`
207
232
208
233
Add recommended formatters to the project (namely, [Ruff](https://docs.astral.sh/ruff/formatter/) and [pyproject-fmt](https://pyproject-fmt.readthedocs.io/en/latest/)), including:
@@ -311,7 +336,7 @@ declaring dependencies with `uv add`.
311
336
312
337
#### Documentation
313
338
314
-
-`usethis tool mkdocs` - Use [MkDocs](https://www.mkdocs.org/): project documentation sites with Markdown.
339
+
-`usethis tool mkdocs` - Use [MkDocs](https://www.mkdocs.org/): Generate project documentation sites with Markdown.
0 commit comments