Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uv run --script should imply --no-project #8764

Closed
offbyone opened this issue Nov 2, 2024 · 4 comments
Closed

uv run --script should imply --no-project #8764

offbyone opened this issue Nov 2, 2024 · 4 comments
Labels
needs-mre Needs more information for reproduction

Comments

@offbyone
Copy link

offbyone commented Nov 2, 2024

I'm running into a variation of #8666

I have some uv scripts that are just generic command line tools, not part of a project. If I run them inside a Python project that uses Poetry, though, I get error: No projecttable found in:/Users/offby1/projects/autopub/autopub/pyproject.toml` errors constantly.

I'm using the --script shebang:

#!/usr/bin/env uv --script

I realize that I can add --no-project to it, but really, I think once you're using --script there's a good argument to be made that uv should assume --no-project

@zanieb
Copy link
Member

zanieb commented Nov 2, 2024

We should just stop throwing that error so aggressively. I don't want --script to imply --no-project in case we want to read things like settings from the project too in the future.

@zanieb zanieb added the bug Something isn't working label Nov 2, 2024
@charliermarsh
Copy link
Member

I actually can't reproduce this. Are you still able to? I don't think we discover projects when --script is provided, from reading the code.

@charliermarsh charliermarsh added needs-mre Needs more information for reproduction and removed bug Something isn't working labels Dec 9, 2024
@zanieb
Copy link
Member

zanieb commented Dec 9, 2024

Agreed, could not reproduce.

@zanieb zanieb closed this as completed Dec 9, 2024
@offbyone
Copy link
Author

offbyone commented Dec 9, 2024

I no longer see this either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-mre Needs more information for reproduction
Projects
None yet
Development

No branches or pull requests

3 participants