MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / _CommonChecks

Function _CommonChecks

scripts/tools/PRESUBMIT.py:8–26  ·  view source on GitHub ↗
(input_api, output_api)

Source from the content-addressed store, hash-verified

6
7
8def _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
29def CheckChangeOnUpload(input_api, output_api):

Callers 2

CheckChangeOnUploadFunction · 0.85
CheckChangeOnCommitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected