Skip to content
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

Change dmypy status file with config or environment variable #13691

Open
christianbundy opened this issue Sep 20, 2022 · 0 comments · May be fixed by #13692
Open

Change dmypy status file with config or environment variable #13691

christianbundy opened this issue Sep 20, 2022 · 0 comments · May be fixed by #13692
Labels
feature topic-configuration Configuration files and flags topic-daemon dmypy

Comments

@christianbundy
Copy link
Contributor

Feature

The only way I've been able to set the dmypy status file is by passing --status-file on the command-line, but I'm running dmypy in a few different scripts and would love to be able to hard-code this in one spot.

Pitch

Instead of dmypy --status-file /tmp/dmypy-status, I'd like to either make an environment variable (DMYPY_STATUS_FILE, DMYPY_STATUS_FILE, or similar) or even a mypy config option (status_file?) so that I don't have to explicitly set the status file in every command-line invocation.

Why are you even changing the status file?

Great question. I'm using Docker with a host-mounted volume, and I'd like to avoid sharing the host-mounted volume back and forth between the host and the container. By moving it out of the current directory, I'll be able to run dmypy both inside and outside of the container without conflicts.

@AlexWaygood AlexWaygood added topic-daemon dmypy topic-configuration Configuration files and flags labels Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature topic-configuration Configuration files and flags topic-daemon dmypy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants