mypy
mypy copied to clipboard
Set the config file’s location with an environment variable.
Feature
Similar to setting MYPYPATH:
Allow setting mypy’s config file location with an environment variable, e.g.:
$ export MYPYCFG=~/work/settings/mypy.ini
Pitch
Most, if not all, of my Python projects use the same mypy.ini file, so currently I run mypy using:
mypy --config-file $MYPYCFG .
It would be easier if one could just run mypy, with mypy using $MYPYCFG as the config file setting.
What I do not know is whether anyone besides me would benefit from such a feature, so this might be too big an ask.