-
Notifications
You must be signed in to change notification settings - Fork 19
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 include yaml #51
Conversation
pystarport serve --data=./data --config=cronos_has_dotenv.yaml --dotenv=overwrite.env
This pull request introduces 3 alerts when merging 3c85574 into 4d8e677 - view on LGTM.com new alerts:
|
This pull request introduces 3 alerts when merging 92a434c into 4d8e677 - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 2bfcf6d into 4d8e677 - view on LGTM.com new alerts:
|
add pyyaml-include & mergedeep
pyproject.toml
Outdated
@@ -22,6 +22,8 @@ docker = "^4.3.1" | |||
bech32 = "^1.1.0" | |||
multitail2 = "^1.5.2" | |||
python-dotenv = "^0.19.2" | |||
pyyaml-include = "^1.3" | |||
mergedeep = {git = "https://github.com/mmsqe/mergedeep.git", rev = "nested-merge"} |
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.
we already used a jsonmerge
, what's the difference with this one?
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.
just more strategies, but can use without nested merge
pystarport/expansion.py
Outdated
|
||
include = config.pop("include", {}) | ||
if include: | ||
config = merge(include, config, strategy=Strategy.ADDITIVE) |
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.
ADDITIVE
sounds non-intuitive, I think people will expect REPLACE
.
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.
Can we can deprecate the dotenv feature now with this? seems not, right?
no change in dotenv func, but why deprecate it, no harms to keep? |
No description provided.