From cc58e24fc33ec9bae11ad35196b55efef2c8a3c0 Mon Sep 17 00:00:00 2001 From: "Dmitry Kabanov, PhD" Date: Tue, 9 May 2023 22:08:52 +0200 Subject: [PATCH] Update configuration.rst Clarify information about how the search for configuration files is done, particularly, state that only the first found file is read for configuration. --- docs/source/user/configuration.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/source/user/configuration.rst b/docs/source/user/configuration.rst index 70fc22b..efad0fd 100644 --- a/docs/source/user/configuration.rst +++ b/docs/source/user/configuration.rst @@ -25,7 +25,8 @@ Configuration Locations ======================= |Flake8| supports storing its configuration in your project in one of -``setup.cfg``, ``tox.ini``, or ``.flake8``. +``setup.cfg``, ``tox.ini``, or ``.flake8`` (in that order). +If, say, ``setup.cfg`` is found, the rest of the files are not read. Values set at the command line have highest priority, then those in the project configuration file, and finally there are the defaults. However,