Fix reference to `pyproject.toml` path in workspace discovery (#3083)

This is why we write tests 😂
This commit is contained in:
Charlie Marsh 2024-04-16 21:41:00 -04:00 committed by GitHub
parent b3f98d5e05
commit f9c4ca3473
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ fn read_options(dir: &Path) -> Result<Option<Options>, WorkspaceError> {
}
// Read a `pyproject.toml` file in the current directory.
let path = path.join("pyproject.toml");
let path = dir.join("pyproject.toml");
match fs_err::read_to_string(&path) {
Ok(content) => {
// Parse, but skip any `pyproject.toml` that doesn't have a `[tool.uv]` section.