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
+1 -1
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.