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 init reads stray pyproject.toml even with --no-config #6320

Closed
bluss opened this issue Aug 21, 2024 · 1 comment · Fixed by #6328
Closed

uv init reads stray pyproject.toml even with --no-config #6320

bluss opened this issue Aug 21, 2024 · 1 comment · Fixed by #6328
Assignees
Labels
bug Something isn't working

Comments

@bluss
Copy link
Contributor

bluss commented Aug 21, 2024

See the following reproducer with uv 0.3.0.

There's an empty pyproject.toml file there. It blocks creating a new project below it, because the empty file is not valid.

mkdir /tmp/newroot
cd /tmp/newroot
touch pyproject.toml
uv init --no-config newproject

Actual output

error: No `project` table found in: `/tmp/newroot`

Same result when adding --no-workspace.

@charliermarsh
Copy link
Member

Yeah this looks wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants