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 }