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
Hi! Our team currently relies heavily on PDM and we'd like to migrate to uv. However, we're missing a crucial feature: the ability to define and run script aliases directly from the pyproject.toml file.
Here’s an example of the scripts we currently use to streamline our workflow:
Easily run various modes (e.g., pdm train <...args>).
Automatically install pre-commit hooks when running pdm install.
Reference these scripts in our GitLab CI/CD templates.
Key Features:
Script Definition in pyproject.toml: Ability to define shell scripts that can be run directly from the pyproject.toml file.
Composite Commands: Support for composite scripts, where a single command triggers multiple actions (e.g., l runs both lint and format).
Pre/Post Hooks: Hooks like post_sync to automate tasks such as installing pre-commit hooks after uv sync.
Script Skipping: A way to skip certain scripts, possibly with a --skip flag.
Additional Suggestion:
It would be great if we could run scripts directly without an intermediary command like run. For example, instead of uv run <script>, we could use uv <script>. In case of a conflict with default commands, uv run <script> could be used as a fallback.
We’d love to see similar functionality in uv, inspired by PDM or npm/yarn.
The text was updated successfully, but these errors were encountered:
Hi! Our team currently relies heavily on PDM and we'd like to migrate to uv. However, we're missing a crucial feature: the ability to define and run script aliases directly from the
pyproject.toml
file.Here’s an example of the scripts we currently use to streamline our workflow:
This setup allows us to:
pdm train <...args>
).pre-commit
hooks when runningpdm install
.Key Features:
pyproject.toml
: Ability to define shell scripts that can be run directly from thepyproject.toml
file.l
runs bothlint
andformat
).post_sync
to automate tasks such as installingpre-commit
hooks afteruv sync
.--skip
flag.Additional Suggestion:
It would be great if we could run scripts directly without an intermediary command like
run
. For example, instead ofuv run <script>
, we could useuv <script>
. In case of a conflict with default commands,uv run <script>
could be used as a fallback.We’d love to see similar functionality in uv, inspired by PDM or npm/yarn.
The text was updated successfully, but these errors were encountered: