-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set MYPY_CONFIG_FILE_DIR environment variable #7968
Comments
I like this better than #7967, since this preserves backward compatibility. My proposal for the name of the variable is |
hi @blueyed i want work on it will you please elaborate it |
@mridullpandey |
btw: I think |
@blueyed Do you have a use case for using the path to the config file, instead of the directory where it's located? Using @mridullpandey Config file parsing is implemented in |
@JukkaL
So I am +0 myself on using the file - mainly to avoid having to add another env var later, and given that it is more explicit/precise. But it has the downside of having to append "/.." for the more typical use case (this issue). |
i'm taking this issue |
PR was reverted (it broke CI). |
In addition to / as an alternative to #7967 mypy could set an environment variable of the config file being used.
This could be used with e.g.
mypy_path
then (mypy_path = $MYPY_CONFIGFILE/src
), and also with defaults likecache_dir
.The text was updated successfully, but these errors were encountered: