basedmypy
basedmypy copied to clipboard
Based Python static type checker with baseline, sane default settings and based typing features
Because it's extremely cringe when stuff starts failing because some random dep got bumped.
It's annoying that PR's default to the upstream repo. Probably better to do this sooner than later.
This would greatly improve the vendored stub use-case. So you can incrementally type stubs as they are used, and persist those typings when the member declarations are updated. # Workaround...
Mypy doesn't really care about unrecognized options in the config file, but a feature like this might help with readability. ```toml [tool.mypy] sus_sus = true [tool.basedmypy] amongus = true ```...
The flag will default to false and will be mandatory for all targets. Eg: thirdparty.pyi ```py def foo(a: list[Any]) -> Any: ... ``` my.py ```py from thirdparty import foo reveal_type(foo)...
From #117 and #185 and others To provide an overview and insight into the current state of the baseline. Here is a mockup of what information it could contain: ```...
Would be very based as you would be able to keep track of what strictness options you are currently adopting.
Use case being that having an good option globally sucks because it can mess with third party stuff that was written for cringe features, and implicitly activating it for stuff...
Currently, `[[tool.mypy.overrides]]` in `pyproject.toml` needs to specify what the overrides apply to using `module`. Would be useful to be able to specify `path` instead (eg. to apply a different configuration...