Skip to content

Commit ec93353

Browse files
ticosaxautozimu
authored andcommitted
add new root marker for python projects: pyproject.toml
As defined per https://www.python.org/dev/peps/pep-0518/ `pyproject.toml` is a file that could be used to define a python project. It is already used by some tools like [poetry](https://poetry.eustace.io/) or [black](https://black.readthedocs.io/en/stable/)
1 parent f71ab82 commit ec93353

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ pub fn get_rootPath<'a>(
5151
dir.join("setup.py").exists()
5252
|| dir.join("Pipfile").exists()
5353
|| dir.join("requirements.txt").exists()
54+
|| dir.join("pyproject.toml").exists()
5455
}),
5556
"c" | "cpp" => traverse_up(path, |dir| dir.join("compile_commands.json").exists()),
5657
"cs" => traverse_up(path, is_dotnet_root),

0 commit comments

Comments
 (0)