Closed yarikoptic closed 4 years ago
Merging #517 into master will increase coverage by
0.10%
. The diff coverage is68.75%
.
@@ Coverage Diff @@
## master #517 +/- ##
==========================================
+ Coverage 89.47% 89.58% +0.10%
==========================================
Files 148 149 +1
Lines 12290 12305 +15
==========================================
+ Hits 10997 11023 +26
+ Misses 1293 1282 -11
Impacted Files | Coverage Δ | |
---|---|---|
reproman/support/collections.py | 64.28% <64.28%> (ø) |
|
reproman/support/jobs/orchestrators.py | 91.86% <100.00%> (+0.01%) |
:arrow_up: |
...eproman/interface/tests/test_backend_parameters.py | 100.00% <0.00%> (+4.34%) |
:arrow_up: |
reproman/tests/skip.py | 97.75% <0.00%> (+4.49%) |
:arrow_up: |
reproman/distributions/tests/test_venv.py | 98.07% <0.00%> (+10.57%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update b6528a1...7a965b4. Read the comment docs.
Overall @kyleam - do you think it is a worthwhile approach or we should just use another design pattern? e.g. is there a particular reason we have not listed known submitters etc as choices within run
interface _params_
definitions?
e.g. is there a particular reason we have not listed known submitters etc as choices within
run
interface_params_
definitions?
No, I think that was just an oversight. The _params_
listing is a little funky to accommodate --list
without repeating information (and I think it'd be a mistake to try to pack that information into the command docstring), but I don't see any reason the keys of SUBMITTERS
and ORCHESTRATOR
couldn't be used as the value for choices
.
gh-520 adds constraints to --orc
and --sub
, if you'd prefer to go that direction.
Let's consider gh-520 sufficient for now, and I will revisit this one if I run into another use case where this additional protection would be needed.
To provide an informative error message like:
instead of
which would require user to RTFM instead of fixing up the invocation
TODOs
SimpleRegistry
to signal the purpose of those use-cases?difflib.get_close_matches
if anything closeish