Skip to content

Commit

Permalink
Upgrade dev-cmd to pick up improved -l output. (#129)
Browse files Browse the repository at this point in the history
Now:
```console
:; uvrc -l
Commands:
(5 commands are hidden.)
check-python-version
fmt
check-fmt
lint
check-lint
type-check
doc:
    -type: The type of sphinx doc to build. One of:
           html, dirhtml, htmlhelp, qthelp, devhelp, text, gettext, linkcheck or xml.
           [default: html]

Tasks:
test (-- extra pytest args ...)
linkcheck: 
    Check documentation for broken links.
package: 
    Build the science scies using science from local sources.
science (-- extra dist/science.pyz args ...): 
    Runs science from local sources.
checks (-- extra pytest args ...): 
    Runs all development checks, including auto-formatting code.
ci (-- extra pytest args ...): 
    Runs all checks used for CI.
```
  • Loading branch information
jsirois authored Jan 30, 2025
1 parent ba9e5cf commit 7fd26f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ args = ["sphinx-build", "-b", "{-type:html}", "-aEW", "docs", "docs/build/{-type

[tool.dev-cmd.commands.run-zipapp]
env = {"SCIENCE_DOC_LOCAL" = "docs/build/html"}
args = ["python", "dist/science.pyz"]
args = ["dist/science.pyz"]
accepts-extra-args = true
hidden = true

Expand All @@ -183,7 +183,7 @@ description = "Build the science scies using science from local sources."
steps = [["doc", "create-zipapp"], ["package-thin-scie", "package-fat-scie"]]

[tool.dev-cmd.tasks.science]
description = "Runs science from local sources. Accepts extra args after --."
description = "Runs science from local sources."
steps = [["doc", "create-zipapp"], "run-zipapp"]

[tool.dev-cmd.tasks.checks]
Expand Down
7 changes: 3 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7fd26f9

Please sign in to comment.