File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ fn is_poetry_cache_environment(path: &Path) -> bool {
6767/// We check if the parent directory has a pyproject.toml with Poetry configuration.
6868fn is_in_project_poetry_environment ( path : & Path ) -> bool {
6969 // Check if this is a .venv directory
70- let dir_name = path. file_name ( ) . and_then ( |n| n. to_str ( ) ) . unwrap_or_default ( ) ;
70+ let dir_name = path
71+ . file_name ( )
72+ . and_then ( |n| n. to_str ( ) )
73+ . unwrap_or_default ( ) ;
7174 if dir_name != ".venv" {
7275 return false ;
7376 }
@@ -252,10 +255,7 @@ impl Locator for Poetry {
252255
253256 // Check for in-project .venv Poetry environment
254257 if is_in_project_poetry_environment ( prefix) {
255- trace ! (
256- "Identified in-project Poetry environment: {:?}" ,
257- prefix
258- ) ;
258+ trace ! ( "Identified in-project Poetry environment: {:?}" , prefix) ;
259259 // For in-project .venv, the project directory is the parent
260260 let project_dir = prefix. parent ( ) . unwrap_or ( prefix) . to_path_buf ( ) ;
261261 return environment:: create_poetry_env (
You can’t perform that action at this time.
0 commit comments