Restyle #3393 introduce hyper parameters and config (#3516)

* Work in progress

* added file parsing and name validation + adjust schema

* Exceptions on bad input

* Support multiple parameters

* Support multi 's in
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!

* Restyled by black

Co-authored-by: elgehelge <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
This commit is contained in:
restyled-io[bot]
2020-03-20 00:53:41 +02:00
committed by GitHub
co-authored by elgehelge Restyled.io
parent caf5b931b9
commit 65d22c7dbd
8 changed files with 167 additions and 15 deletions
+8
View File
@@ -40,6 +40,7 @@ class CmdRun(CmdBase):
metrics=self.args.metrics,
metrics_no_cache=self.args.metrics_no_cache,
deps=self.args.deps,
params=self.args.params,
fname=self.args.file,
cwd=self.args.cwd,
wdir=self.args.wdir,
@@ -111,6 +112,13 @@ def add_parser(subparsers, parent_parser):
help="Declare output file or directory "
"(do not put into DVC cache).",
)
run_parser.add_argument(
"-p",
"--params",
action="append",
default=[],
help="Declare parameter to use as additional dependency.",
)
run_parser.add_argument(
"-m",
"--metrics",