(input_api, output_api)
| 6 | |
| 7 | |
| 8 | def _CommonChecks(input_api, output_api): |
| 9 | results = [] |
| 10 | |
| 11 | # Run Pylint over the files in the directory. |
| 12 | pylint_checks = input_api.canned_checks.GetPylint(input_api, |
| 13 | output_api, |
| 14 | version='2.6') |
| 15 | results.extend(input_api.RunTests(pylint_checks)) |
| 16 | |
| 17 | # Run the Python unittests. |
| 18 | results.extend( |
| 19 | input_api.canned_checks.RunUnitTestsInDirectory( |
| 20 | input_api, |
| 21 | output_api, |
| 22 | '.', [r'^.+_unittest\.py$'], |
| 23 | run_on_python2=False, |
| 24 | skip_shebang_check=True)) |
| 25 | |
| 26 | return results |
| 27 | |
| 28 | |
| 29 | def CheckChangeOnUpload(input_api, output_api): |
no outgoing calls
no test coverage detected