Add Pipfile and requirements.txt python rootMarkers
In case a project lacks a `setup.py` it is still common to have either a
`requirements.txt` or the newer `Pipfile`
@@ -45,7 +45,11 @@ pub fn get_rootPath<'a>(
"rust" => traverse_up(path, |dir| dir.join("Cargo.toml").exists()),
"php" => traverse_up(path, |dir| dir.join("composer.json").exists()),
"javascript" | "typescript" => traverse_up(path, |dir| dir.join("package.json").exists()),
- "python" => traverse_up(path, |dir| dir.join("setup.py").exists()),
+ "python" => traverse_up(path, |dir| {
+ dir.join("setup.py").exists()
+ || dir.join("Pipfile").exists()
+ || dir.join("requirements.txt").exists()
+ }),
"c" | "cpp" => traverse_up(path, |dir| dir.join("compile_commands.json").exists()),
"cs" => traverse_up(path, is_dotnet_root),
"java" => traverse_up(path, |dir| {
