mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Set the config file’s location with an environment variable.

Open PatrCo opened this issue 1 year ago • 0 comments

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.

PatrCo avatar Aug 16 '24 16:08 PatrCo