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

--no-config can be misleading #11365

Open
KRRT7 opened this issue Feb 10, 2025 · 2 comments
Open

--no-config can be misleading #11365

KRRT7 opened this issue Feb 10, 2025 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@KRRT7
Copy link

KRRT7 commented Feb 10, 2025

Summary

uv run --no-config --with rich main.py
error: No project table found in: C:\Users\NuitkaDevOps\Desktop\pyproject.toml

i thought that --no-config would've prevented the project error

as per the doc:

      --no-config                                  Avoid discovering configuration files (`pyproject.toml`, `uv.toml`) [env: UV_NO_CONFIG=]

this tells me that it shouldnt even try to find and error after finding the desktop pyproject.toml

but after some help from @zanieb it appears that this behavior can be true or false depending on the context; perhaps the documentation could be enhanced for this situation.

Example

No response

@KRRT7 KRRT7 added the enhancement New feature or improvement to existing functionality label Feb 10, 2025
@charliermarsh
Copy link
Member

You might be looking for --no-project?

@KRRT7
Copy link
Author

KRRT7 commented Feb 10, 2025

You might be looking for --no-project?

I was indeed, zane helped me out in the discord:
https://discord.com/channels/1039017663004942429/1039017663512449056/1338305769723924592

@zanieb zanieb added documentation Improvements or additions to documentation and removed enhancement New feature or improvement to existing functionality labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants