Lines Matching refs:input_api
12 def _RunPylint(input_api, output_api): argument
13 return input_api.RunTests(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(
21 input_api.PresubmitLocalPath(), 'devil', *dirs)
23 test_env = dict(input_api.environ)
29 message_type = (output_api.PresubmitError if input_api.is_committing
32 return input_api.RunTests([
33 input_api.Command(
36 input_api.os_path.join(
37 input_api.PresubmitLocalPath(), 'bin', 'run_py_tests')],
42 def _EnsureNoPylibUse(input_api, output_api): argument
44 this_presubmit_file = input_api.os_path.join(
45 input_api.PresubmitLocalPath(), 'PRESUBMIT.py')
49 changed_files = input_api.AffectedSourceFiles(other_python_files)
50 import_error_re = input_api.re.compile(
67 def CommonChecks(input_api, output_api): argument
69 output += _RunPylint(input_api, output_api)
70 output += _RunUnitTests(input_api, output_api)
71 output += _EnsureNoPylibUse(input_api, output_api)
75 def CheckChangeOnUpload(input_api, output_api): argument
76 return CommonChecks(input_api, output_api)
79 def CheckChangeOnCommit(input_api, output_api): argument
80 return CommonChecks(input_api, output_api)