|
2 | 2 |
|
3 | 3 |
|
4 | 4 | # Do not change the order of arguments to this function without updating the iota in targets.go to match it.
|
5 |
| -def build_rule(name:str, cmd:str|dict='', test_cmd:str|dict='', debug_cmd:str='', srcs:list|dict=None, data:list|dict=None, |
6 |
| - debug_data:list|dict=None, outs:list|dict=None, deps:list=None, exported_deps:list=None, secrets:list|dict=None, |
7 |
| - tools:str|list|dict=None, test_tools:str|list|dict=None, debug_tools:str|list|dict=None, labels:list=None, |
8 |
| - visibility:list=CONFIG.DEFAULT_VISIBILITY, hashes:list=None, binary:bool=False, test:bool=False, |
9 |
| - test_only:bool=CONFIG.DEFAULT_TESTONLY, building_description:str=None, needs_transitive_deps:bool=False, |
10 |
| - output_is_complete:bool=False, sandbox:bool=CONFIG.BUILD_SANDBOX, test_sandbox:bool=CONFIG.TEST_SANDBOX, |
11 |
| - no_test_output:bool=False, flaky:bool|int=0, build_timeout:int|str=0, test_timeout:int|str=0, pre_build:function=None, |
12 |
| - post_build:function=None, requires:list=None, provides:dict=None, licences:list=CONFIG.DEFAULT_LICENCES, |
13 |
| - test_outputs:list=None, system_srcs:list=None, stamp:bool=False, tag:str='', optional_outs:list=None, progress:bool=False, |
14 |
| - size:str=None, _urls:list=None, internal_deps:list=None, pass_env:list=None, local:bool=False, output_dirs:list=[], |
15 |
| - exit_on_error:bool=CONFIG.EXIT_ON_ERROR, entry_points:dict={}, env:dict={}, _file_content:str=None, |
16 |
| - _subrepo:bool=False, no_test_coverage:bool=False): |
| 5 | +def build_rule( |
| 6 | + name:str, |
| 7 | + cmd:str|dict="", |
| 8 | + test_cmd:str|dict="", |
| 9 | + debug_cmd:str="", |
| 10 | + srcs:list|dict=None, |
| 11 | + data:list|dict=None, |
| 12 | + debug_data:list|dict=None, |
| 13 | + outs:list|dict=None, |
| 14 | + deps:list=None, |
| 15 | + exported_deps:list=None, |
| 16 | + secrets:list|dict=None, |
| 17 | + tools:str|list|dict=None, |
| 18 | + test_tools:str|list|dict=None, |
| 19 | + debug_tools:str|list|dict=None, |
| 20 | + labels:list=None, |
| 21 | + visibility:list=CONFIG.DEFAULT_VISIBILITY, |
| 22 | + hashes:list=None, |
| 23 | + binary:bool=False, |
| 24 | + test:bool=False, |
| 25 | + test_only:bool=CONFIG.DEFAULT_TESTONLY, |
| 26 | + building_description:str=None, |
| 27 | + needs_transitive_deps:bool=False, |
| 28 | + output_is_complete:bool=False, |
| 29 | + sandbox:bool=CONFIG.BUILD_SANDBOX, |
| 30 | + test_sandbox:bool=CONFIG.TEST_SANDBOX, |
| 31 | + no_test_output:bool=False, |
| 32 | + flaky:bool|int=0, |
| 33 | + build_timeout:int|str=0, |
| 34 | + test_timeout:int|str=0, |
| 35 | + pre_build:function=None, |
| 36 | + post_build:function=None, |
| 37 | + requires:list=None, |
| 38 | + provides:dict=None, |
| 39 | + licences:list=CONFIG.DEFAULT_LICENCES, |
| 40 | + test_outputs:list=None, |
| 41 | + system_srcs:list=None, |
| 42 | + stamp:bool=False, |
| 43 | + tag:str="", |
| 44 | + optional_outs:list=None, |
| 45 | + progress:bool=False, |
| 46 | + size:str=None, |
| 47 | + _urls:list=None, |
| 48 | + internal_deps:list=None, |
| 49 | + pass_env:list=None, |
| 50 | + local:bool=False, |
| 51 | + output_dirs:list=[], |
| 52 | + exit_on_error:bool=CONFIG.EXIT_ON_ERROR, |
| 53 | + entry_points:dict={}, |
| 54 | + env:dict={}, |
| 55 | + _file_content:str=None, |
| 56 | + _subrepo:bool=False, |
| 57 | + no_test_coverage:bool=False, |
| 58 | + # This matches the default `BuildEntrypoint` is defined in |
| 59 | + #`src/core/build_entrypoint.go`. |
| 60 | + build_entry_point:list=None, |
| 61 | + build_entry_point_exit_on_error_args:list=None, |
| 62 | + build_entry_point_interactive_args:list=None, |
| 63 | + build_entry_point_exec_command_args:list=None): |
17 | 64 | pass
|
18 | 65 |
|
19 | 66 | def chr(i:int) -> str:
|
|
0 commit comments