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

Fixups and testing for cli config file parsing #722

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

bpkroth
Copy link
Contributor

@bpkroth bpkroth commented Mar 21, 2024

Further fixups to #717

Some parameters were not being respected from --config test-cli-config.jsonc files.

Split out from #720

@bpkroth bpkroth marked this pull request as ready for review March 21, 2024 20:58
@bpkroth bpkroth requested a review from a team as a code owner March 21, 2024 20:58
@bpkroth bpkroth marked this pull request as draft March 21, 2024 21:14
@bpkroth bpkroth added the WIP Work in progress - do not merge yet label Mar 21, 2024
{key: val for (key, val) in config.items() if key not in vars(args)},
# Include any item from the cli config file that either isn't in the cli
# args at all or whose cli arg is missing.
{key: val for (key, val) in config.items() if key not in args_dict or args_dict[key] is None},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{key: val for (key, val) in config.items() if key not in args_dict or args_dict[key] is None},
{key: val for (key, val) in config.items() if args_dict.get(key) is None},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress - do not merge yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants