Skip to content

Commit

Permalink
Remove misleading list of default locations (#10614)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
2 people authored and JukkaL committed Jun 10, 2021
1 parent 12cf0bf commit 5edeeab
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/source/config_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <mypy --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
<command-line>` but there are some differences in flag names and some
Expand Down

0 comments on commit 5edeeab

Please sign in to comment.