mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 10:48:32 +00:00
Stop at the first resolved parent configuration (#8864)
This commit is contained in:
parent
6435e4e4aa
commit
cddc696896
2 changed files with 42 additions and 0 deletions
|
@ -294,6 +294,7 @@ pub fn python_files_in_path(
|
|||
let (root, settings) =
|
||||
resolve_scoped_settings(&pyproject, Relativity::Parent, transformer)?;
|
||||
resolver.add(root, settings);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -494,6 +495,7 @@ pub fn python_file_at_path(
|
|||
let (root, settings) =
|
||||
resolve_scoped_settings(&pyproject, Relativity::Parent, transformer)?;
|
||||
resolver.add(root, settings);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue