|
7 | 7 |
|
8 | 8 | from pyk.ktool.krun import KRunOutput, _build_arg_list |
9 | 9 |
|
10 | | -# fmt: off |
11 | | -required_args: dict[str, Any] = OrderedDict([ |
12 | | - ('command', 'krun'), |
13 | | - ('input_file', None), |
14 | | - ('definition_dir', None), |
15 | | - ('output', None), |
16 | | - ('parser', None), |
17 | | - ('depth', None), |
18 | | - ('pmap', None), |
19 | | - ('cmap', None), |
20 | | - ('term', False), |
21 | | - ('no_expand_macros', False), |
22 | | - ('search_final', False), |
23 | | - ('no_pattern', False), |
24 | | -]) |
| 10 | +required_args: dict[str, Any] = OrderedDict( |
| 11 | + [ |
| 12 | + ('command', 'krun'), |
| 13 | + ('input_file', None), |
| 14 | + ('definition_dir', None), |
| 15 | + ('output', None), |
| 16 | + ('parser', None), |
| 17 | + ('depth', None), |
| 18 | + ('pmap', None), |
| 19 | + ('cmap', None), |
| 20 | + ('term', False), |
| 21 | + ('temp_dir', None), |
| 22 | + ('no_expand_macros', False), |
| 23 | + ('search_final', False), |
| 24 | + ('no_pattern', False), |
| 25 | + ] |
| 26 | +) |
| 27 | + |
25 | 28 | optional_args: dict[str, tuple[Any, list[str]]] = { |
26 | | - 'input_file': (Path('input/path'), ['input/path']), |
27 | | - 'definition_dir': (Path('def/path'), ['--definition', 'def/path']), |
28 | | - 'output': (KRunOutput.JSON, ['--output', 'json']), |
29 | | - 'parser': ('cat', ['--parser', 'cat']), |
30 | | - 'depth': (1234, ['--depth', '1234']), |
31 | | - 'pmap': ({'FOO': 'bar', 'BUZZ': 'kill'}, |
32 | | - ['-pFOO=bar', '-pBUZZ=kill']), |
33 | | - 'cmap': ({'COO': 'car', 'FUZZ': 'bill'}, |
34 | | - ['-cCOO=car', '-cFUZZ=bill']), |
35 | | - 'term': (True, ['--term']), |
36 | | - 'no_expand_macros': (True, ['--no-expand-macros']), |
37 | | - 'search_final': (True, ['--search-final']), |
38 | | - 'no_pattern': (True, ['--no-pattern']), |
| 29 | + 'input_file': (Path('input/path'), ['input/path']), |
| 30 | + 'definition_dir': (Path('def/path'), ['--definition', 'def/path']), |
| 31 | + 'output': (KRunOutput.JSON, ['--output', 'json']), |
| 32 | + 'parser': ('cat', ['--parser', 'cat']), |
| 33 | + 'depth': (1234, ['--depth', '1234']), |
| 34 | + 'pmap': ({'FOO': 'bar', 'BUZZ': 'kill'}, ['-pFOO=bar', '-pBUZZ=kill']), |
| 35 | + 'cmap': ({'COO': 'car', 'FUZZ': 'bill'}, ['-cCOO=car', '-cFUZZ=bill']), |
| 36 | + 'term': (True, ['--term']), |
| 37 | + 'temp_dir': (Path('/tmp/path'), ['--temp-dir', '/tmp/path']), |
| 38 | + 'no_expand_macros': (True, ['--no-expand-macros']), |
| 39 | + 'search_final': (True, ['--search-final']), |
| 40 | + 'no_pattern': (True, ['--no-pattern']), |
39 | 41 | } |
40 | | -# fmt: on |
41 | 42 |
|
42 | 43 |
|
43 | 44 | def make_kwargs(test_id: str, keys: list[str]) -> tuple[str, dict[str, Any], list[str]]: |
|
0 commit comments