You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support reading options from a config file, default mypy.ini.
Also support reading command line flags using `mypy @flagsfile`.
Addresses #1249 (but does not completely fix it).
The mypy.ini file has the format:
```
[mypy]
silent_imports = True
python_version = 2.7
```
Errors in this config file are non-fatal. Comments and blank lines
are supported.
The `@flagsfile` option reads additional argparse-style flags,
including filenames, from `flagsfile`, one per line. This is
typically used for passing in a list of files, but it can also be used
for passing flags:
```
--silent-imports
--py2
mypy
```
This format does not allow comments or blank lines. Each option must
appear on a line by itself. Errors are fatal.
The mypy.ini file serves as a set of defaults that can be overridden
(or in some cases extended) by command line flags. An alternate
config file may be specified using a command line flag:
`--config-file anywhere.ini`. (There's a trick involved in making
this work, read the source. :-)
0 commit comments