Flycheck actually runs its checkers over a file named flycheck_<real_file_name>.py, which causes the file-specific sections in mypy.ini files not to match anything. E.g., for the config file
the options in the [mypy] section will be correctly applied when checking file heres_a_file.py, but the specific options will not, since flycheck will see it as flycheck_heres_a_file.py.
Flycheck actually runs its checkers over a file named
flycheck_<real_file_name>.py
, which causes the file-specific sections in mypy.ini files not to match anything. E.g., for the config filethe options in the
[mypy]
section will be correctly applied when checking fileheres_a_file.py
, but the specific options will not, since flycheck will see it asflycheck_heres_a_file.py
.