KotlinIsland / basedmypy

Based Python static type checker with baseline, sane default settings and based typing features
Other
140 stars 4 forks source link

A `basedmypy` key in config files for basedmypy exclusive configuration options #158

Open KotlinIsland opened 2 years ago

KotlinIsland commented 2 years ago

Mypy doesn't really care about unrecognized options in the config file, but a feature like this might help with readability.

[tool.mypy]
sus_sus = true

[tool.basedmypy]
amongus = true
[mypy]
sus_sus = true

[basedmypy]
amongus = true
DetachHead commented 9 months ago

another reason for this is that vscode complains about basedmypy options because they're not in the json schema hosted on schemastore: https://json.schemastore.org/partial-mypy.json

image