From 47d44e5f7b158e6f9d1c438b50635d190fcb044c Mon Sep 17 00:00:00 2001 From: gkowzan Date: Mon, 18 Aug 2025 01:35:37 +0200 Subject: [PATCH] Fix description of global config file discovery strategy (#19143) (#19188) Contrary to docs, ruff uses etcetera's base strategy rather than the native strategy. --- docs/configuration.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configuration.md b/docs/configuration.md index 533c04c71d..0b79a20de9 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -270,7 +270,7 @@ There are a few exceptions to these rules: 1. If no config file is found in the filesystem hierarchy, Ruff will fall back to using a default configuration. If a user-specific configuration file exists at `${config_dir}/ruff/pyproject.toml`, that file will be used instead of the default - configuration, with `${config_dir}` being determined via [`etcetera`'s native strategy](https://docs.rs/etcetera/latest/etcetera/#native-strategy), + configuration, with `${config_dir}` being determined via [`etcetera`'s base strategy](https://docs.rs/etcetera/latest/etcetera/#native-strategy), and all relative paths being again resolved relative to the _current working directory_. 1. Any config-file-supported settings that are provided on the command-line (e.g., via `--select`) will override the settings in _every_ resolved configuration file.