-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Cannot set output in mypy.ini #21376
Copy link
Copy link
Open
Labels
bugmypy got something wrongmypy got something wrongtopic-configurationConfiguration files and flagsConfiguration files and flagstopic-error-reportingHow we report errorsHow we report errors
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-configurationConfiguration files and flagsConfiguration files and flagstopic-error-reportingHow we report errorsHow we report errors
Bug Report
The following config is not respected:
I believe this is as
mypy.config_parser.parse_section()doesdv = getattr(template, key, None); if dv is None: ..., but the default ofOptions.outputis intentionallyNone. I don't know if excludingNonedefault values is intentional here or not, so I haven't yet put up a PR until someone can confirm.To Reproduce
Use the above config, observe output is not JSON.
Expected Behavior
To be able to configure the output format via JSON.
Actual Behavior
No JSON.
Your Environment
mypy.ini(and other config files): As above