![]() These sections specify additional flags that only apply to modules Patterns of fully-qualified module names, with some components optionally Present, where PATTERN1, PATTERN2, etc., are comma-separated This specifiesĪdditional sections named may be Comments start with # characters.Ī section named must be present. Section names in square brackets and flag settings of the form The configuration file format is the usual To expand environment variables use $VARNAME or $. To refer to the user home directory, use ~ at the beginning of the path. Some flags support user home directory and environment variable expansion. Most flags correspond closely to command-line flags but there are some differences in flag names and someįlags may take a different value based on the module being processed. Without command line option, mypy will look for configuration files in the above mentioned order. Has the highest precedence and must be correct otherwise mypy will reportĪn error and exit. It is important to understand that there is no merging of configurationįiles, as it would lead to ambiguity. To read a different file instead (see Config file). ![]() If none of them are found the -config-file command-line flag can be used Then setup.cfg in the current directory, then $XDG_CONFIG_HOME/mypy/config, then It uses the file mypy.ini with a fallback to. Mypy supports reading configuration settings from a file. Toggle table of contents sidebar The mypy configuration file #
0 Comments
Leave a Reply. |