Skip to content

Commit 8456287

Browse files
authored
Mention ignore_errors in exclude docs (#18412)
1 parent 025642b commit 8456287

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/source/command_line.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ for full details, see :ref:`running-mypy`.
6868
checked. For instance, ``mypy --exclude '/setup.py$'
6969
but_still_check/setup.py``.
7070

71-
In particular, ``--exclude`` does not affect mypy's :ref:`import following
72-
<follow-imports>`. You can use a per-module :confval:`follow_imports` config
73-
option to additionally avoid mypy from following imports and checking code
74-
you do not wish to be checked.
71+
In particular, ``--exclude`` does not affect mypy's discovery of files
72+
via :ref:`import following <follow-imports>`. You can use a per-module
73+
:confval:`ignore_errors` config option to silence errors from a given module,
74+
or a per-module :confval:`follow_imports` config option to additionally avoid
75+
mypy from following imports and checking code you do not wish to be checked.
7576

7677
Note that mypy will never recursively discover files and directories named
7778
"site-packages", "node_modules" or "__pycache__", or those whose name starts

0 commit comments

Comments
 (0)