Skip to content

Commit 75d417f

Browse files
authored
Document ‘strict’ config file option (#11132)
Historically --strict was only supported on the command line, but commit cb0ceb0 (#8192) added this option to the config file in 0.770. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent 04ff70c commit 75d417f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/source/config_file.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,18 @@ section of the command line docs.
610610
Prohibit equality checks, identity checks, and container checks between
611611
non-overlapping types.
612612

613+
.. confval:: strict
614+
615+
:type: boolean
616+
:default: False
617+
618+
Enable all optional error checking flags. You can see the list of
619+
flags enabled by strict mode in the full :option:`mypy --help`
620+
output.
621+
622+
Note: the exact list of flags enabled by :confval:`strict` may
623+
change over time.
624+
613625

614626
Configuring error messages
615627
**************************

0 commit comments

Comments
 (0)