Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Side by Side Diff: PRESUBMIT.py

Issue 1729313002: Remove ".orig" files and add a check to presubmit (Closed) Base URL: git@github.com:catapult-project/catapult.git@master
Patch Set: Generate a single presubmit error message Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | catapult_build/repo_checks.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Top-level presubmit script for catapult. 5 """Top-level presubmit script for catapult.
6 6
7 See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts 7 See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
8 for more details about the presubmit API built into depot_tools. 8 for more details about the presubmit API built into depot_tools.
9 """ 9 """
10 import re 10 import re
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 'and Catapult issues should be prefixed with "catapult:#".' % 60 'and Catapult issues should be prefixed with "catapult:#".' %
61 input_api.change.BUG))] 61 input_api.change.BUG))]
62 62
63 63
64 def CheckChange(input_api, output_api): 64 def CheckChange(input_api, output_api):
65 results = [] 65 results = []
66 try: 66 try:
67 sys.path += [input_api.PresubmitLocalPath()] 67 sys.path += [input_api.PresubmitLocalPath()]
68 from catapult_build import js_checks 68 from catapult_build import js_checks
69 from catapult_build import html_checks 69 from catapult_build import html_checks
70 from catapult_build import repo_checks
70 results += input_api.canned_checks.PanProjectChecks( 71 results += input_api.canned_checks.PanProjectChecks(
71 input_api, output_api, excluded_paths=_EXCLUDED_PATHS) 72 input_api, output_api, excluded_paths=_EXCLUDED_PATHS)
72 results += CheckChangeLogBug(input_api, output_api) 73 results += CheckChangeLogBug(input_api, output_api)
73 results += js_checks.RunChecks( 74 results += js_checks.RunChecks(
74 input_api, output_api, excluded_paths=_EXCLUDED_PATHS) 75 input_api, output_api, excluded_paths=_EXCLUDED_PATHS)
75 results += html_checks.RunChecks( 76 results += html_checks.RunChecks(
76 input_api, output_api, excluded_paths=_EXCLUDED_PATHS) 77 input_api, output_api, excluded_paths=_EXCLUDED_PATHS)
78 results += repo_checks.RunChecks(input_api, output_api)
77 finally: 79 finally:
78 sys.path.remove(input_api.PresubmitLocalPath()) 80 sys.path.remove(input_api.PresubmitLocalPath())
79 return results 81 return results
80 82
81 83
82 def CheckChangeOnUpload(input_api, output_api): 84 def CheckChangeOnUpload(input_api, output_api):
83 return CheckChange(input_api, output_api) 85 return CheckChange(input_api, output_api)
84 86
85 87
86 def CheckChangeOnCommit(input_api, output_api): 88 def CheckChangeOnCommit(input_api, output_api):
87 return CheckChange(input_api, output_api) 89 return CheckChange(input_api, output_api)
OLDNEW
« no previous file with comments | « no previous file | catapult_build/repo_checks.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698