From ee448eab2dafe583a81b710077c1ab57dcd3212f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=B9=E0=A4=BF=E0=A4=AE=E0=A4=BE=E0=A4=82=E0=A4=B6?= =?UTF-8?q?=E0=A5=81?= Date: Fri, 5 Sep 2025 19:36:25 +0530 Subject: [PATCH] Remove deprecated macOS config file discovery (#19210) ## Summary In #11115 we moved from defaulting to $HOME/Library/Application Support to $XDG_HOME on macOS and added a deprecation warning if we find files in the old location. So this PR removes the warning closes #19145 ## Test Plan Ran `cargo test` --- crates/ruff_workspace/src/pyproject.rs | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/crates/ruff_workspace/src/pyproject.rs b/crates/ruff_workspace/src/pyproject.rs index f849487aa5..0f2251ee11 100644 --- a/crates/ruff_workspace/src/pyproject.rs +++ b/crates/ruff_workspace/src/pyproject.rs @@ -114,7 +114,6 @@ pub fn find_fallback_target_version>(path: P) -> Option Option { use etcetera::BaseStrategy; - use ruff_linter::warn_user_once; let strategy = etcetera::base_strategy::choose_base_strategy().ok()?; let config_dir = strategy.config_dir().join("ruff"); @@ -127,23 +126,6 @@ pub fn find_user_settings_toml() -> Option { } } - // On macOS, we used to support reading from `/Users/Alice/Library/Application Support`. - if cfg!(target_os = "macos") { - let strategy = etcetera::base_strategy::Apple::new().ok()?; - let deprecated_config_dir = strategy.data_dir().join("ruff"); - - for file in [".ruff.toml", "ruff.toml", "pyproject.toml"] { - let path = deprecated_config_dir.join(file); - if path.is_file() { - warn_user_once!( - "Reading configuration from `~/Library/Application Support` is deprecated. Please move your configuration to `{}/{file}`.", - config_dir.display(), - ); - return Some(path); - } - } - } - None }