From a67c261942fe355b5dd0cdd5f6603b564f8eecfe Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Thu, 2 Jan 2025 12:37:52 -0800 Subject: [PATCH] Mention ignore_errors in exclude docs --- docs/source/command_line.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/source/command_line.rst b/docs/source/command_line.rst index 17758484f243..7b6b75b98b6f 100644 --- a/docs/source/command_line.rst +++ b/docs/source/command_line.rst @@ -68,10 +68,11 @@ for full details, see :ref:`running-mypy`. checked. For instance, ``mypy --exclude '/setup.py$' but_still_check/setup.py``. - In particular, ``--exclude`` does not affect mypy's :ref:`import following - `. You can use a per-module :confval:`follow_imports` config - option to additionally avoid mypy from following imports and checking code - you do not wish to be checked. + In particular, ``--exclude`` does not affect mypy's discovery of files + via :ref:`import following `. You can use a per-module + :confval:`ignore_errors` config option to silence errors from a given module, + or a per-module :confval:`follow_imports` config option to additionally avoid + mypy from following imports and checking code you do not wish to be checked. Note that mypy will never recursively discover files and directories named "site-packages", "node_modules" or "__pycache__", or those whose name starts