From 5edeeabbb8822ed654e3eb895af0ba2e411ab76f Mon Sep 17 00:00:00 2001 From: Konstantin Weddige Date: Thu, 10 Jun 2021 12:46:33 +0200 Subject: [PATCH] Remove misleading list of default locations (#10614) The list of location in the second paragraph was missing pyproject.toml and the user config files. This change refers to the complete list in the previous paragraph instead of listing all locations again. Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> --- docs/source/config_file.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/docs/source/config_file.rst b/docs/source/config_file.rst index a5235516739f..cc3a0bc78392 100644 --- a/docs/source/config_file.rst +++ b/docs/source/config_file.rst @@ -13,9 +13,7 @@ to read a different file instead (see :ref:`config-file-flag`). It is important to understand that there is no merging of configuration files, as it would lead to ambiguity. The :option:`--config-file ` flag has the highest precedence and must be correct; otherwise mypy will report -an error and exit. Without command line option, mypy will look for defaults, -but will use only one of them. The first one to read is ``mypy.ini``, -then ``.mypy.ini``, and finally ``setup.cfg``. +an error and exit. Without command line option, mypy will look for configuration files in the above mentioned order. Most flags correspond closely to :ref:`command-line flags ` but there are some differences in flag names and some