-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Support environment files and comments in setenv #1668
Conversation
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Released via https://pypi.org/project/tox/3.20.0/ |
|
||
Support for comments. Lines starting with ``#`` are ignored. | ||
|
||
Support for environment files. Lines starting with the ``file|`` contain path to a environment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gaborbernat any specific reason you implemented it with a prefix vs a substitution? If I were to design this, I'd probably go for {dotenv:file_path}
there... I'm not judging, it just seems untypical for tox's UX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't want to worry about conflicts with conditional factors 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it's not really substitution at all happening here, but different load mechanism. Substitution implies we just string replace that expression with content of the file, but actually here we never do that. Conceptually.
Signed-off-by: Bernat Gabor <bgabor8@bloomberg.net>
Resolves #1667.