mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 04:45:01 +00:00
Fix configuration inheritance for configurations specified in the LSP settings (#13285)
This commit is contained in:
parent
b04948fb72
commit
312bd86e48
3 changed files with 17 additions and 10 deletions
|
@ -140,7 +140,7 @@ pub fn find_user_settings_toml() -> Option<PathBuf> {
|
|||
}
|
||||
|
||||
/// Load `Options` from a `pyproject.toml` or `ruff.toml` file.
|
||||
pub fn load_options<P: AsRef<Path>>(path: P) -> Result<Options> {
|
||||
pub(super) fn load_options<P: AsRef<Path>>(path: P) -> Result<Options> {
|
||||
if path.as_ref().ends_with("pyproject.toml") {
|
||||
let pyproject = parse_pyproject_toml(&path)?;
|
||||
let mut ruff = pyproject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue