Replace argparse with configargparse and default yaml config#106
Open
paulwuertz wants to merge 2 commits intoHBehrens:masterfrom
Open
Replace argparse with configargparse and default yaml config#106paulwuertz wants to merge 2 commits intoHBehrens:masterfrom
paulwuertz wants to merge 2 commits intoHBehrens:masterfrom
Conversation
This was referenced Feb 15, 2025
b74fcd7 to
72338db
Compare
Author
|
Just saw the new release of puncover, nice :) Did a rebase for this proposal, any opinions if you agree with the configargparse package and yaml a config format? Cheers ^^ |
edenfrosst
reviewed
Nov 28, 2025
pyproject.toml
Outdated
| readme = "README.md" | ||
| requires-python = ">=3.8" | ||
| dependencies = [ | ||
| "configargparse>=1.7.1", |
There was a problem hiding this comment.
this should either specify configargparse[yaml] or add a separate dependency on pyyaml
Author
There was a problem hiding this comment.
True, added the [yaml] extra, thanks :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hej :)
Found some open issues and have some new ideas I would like to fix and propose to contribute over the next weekends ^^
Having a config file would be the first step, as most other stuff requires a lot of arguments.
So this could close #18
With configargparse the command line arguments can be reused in a config file.
So
./runner.py --elf_file ~/git/cannectivity/build/zephyr/zephyr.elf --build_dir ~/git/cannectivity/build/ --port 7245is equivilent to
./runner.py -c punconfig.yamlwith punconfig.yaml as