Lines Matching refs:input_api
11 def _RunPylint(input_api, output_api): argument
12 return input_api.RunTests(
13 input_api.canned_checks.RunPylint(
14 input_api, output_api, pylintrc='pylintrc'))
17 def _RunUnitTests(input_api, output_api): argument
20 return input_api.os_path.join(input_api.PresubmitLocalPath(), 'devil',
23 test_env = dict(input_api.environ)
29 message_type = (output_api.PresubmitError if input_api.is_committing else
32 return input_api.RunTests([
33 input_api.Command(name='devil/bin/run_py_tests',
35 input_api.os_path.join(
36 input_api.PresubmitLocalPath(), 'bin',
41 input_api.Command(name='devil/bin/run_py3_tests',
43 input_api.os_path.join(
44 input_api.PresubmitLocalPath(), 'bin',
53 def _EnsureNoPylibUse(input_api, output_api): argument
55 this_presubmit_file = input_api.os_path.join(input_api.PresubmitLocalPath(),
60 changed_files = input_api.AffectedSourceFiles(other_python_files)
61 import_error_re = input_api.re.compile(
79 def CommonChecks(input_api, output_api): argument
81 output += _RunPylint(input_api, output_api)
82 output += _RunUnitTests(input_api, output_api)
83 output += _EnsureNoPylibUse(input_api, output_api)
87 def CheckChangeOnUpload(input_api, output_api): argument
88 return CommonChecks(input_api, output_api)
91 def CheckChangeOnCommit(input_api, output_api): argument
92 return CommonChecks(input_api, output_api)