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

Side by Side Diff: PRESUBMIT.py

Issue 50293009: Revert r231888 "Fixes for python 2.7.5 support." (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 7 years, 1 month 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 | « .gitignore ('k') | git-cl » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 depot tools. 5 """Top-level presubmit script for depot tools.
6 6
7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for 7 See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
8 details on the presubmit API built into depot_tools. 8 details on the presubmit API built into depot_tools.
9 """ 9 """
10 10
11 11
12 def CommonChecks(input_api, output_api, tests_to_black_list): 12 def CommonChecks(input_api, output_api, tests_to_black_list):
13 results = [] 13 results = []
14 results.extend(input_api.canned_checks.CheckOwners(input_api, output_api)) 14 results.extend(input_api.canned_checks.CheckOwners(input_api, output_api))
15 black_list = list(input_api.DEFAULT_BLACK_LIST) + [ 15 black_list = list(input_api.DEFAULT_BLACK_LIST) + [
16 r'^cpplint\.py$', 16 r'^cpplint\.py$',
17 r'^cpplint_chromium\.py$', 17 r'^cpplint_chromium\.py$',
18 r'^python275_bin[\/\\].+', 18 r'^python_274[\/\\].+',
19 r'^python_bin[\/\\].+', 19 r'^python_bin[\/\\].+',
20 r'^site-packages-py[0-9]\.[0-9][\/\\].+', 20 r'^site-packages-py[0-9]\.[0-9][\/\\].+',
21 r'^svn_bin[\/\\].+', 21 r'^svn_bin[\/\\].+',
22 r'^testing_support[\/\\]_rietveld[\/\\].+'] 22 r'^testing_support[\/\\]_rietveld[\/\\].+']
23 disabled_warnings = [ 23 disabled_warnings = [
24 'R0401', # Cyclic import 24 'R0401', # Cyclic import
25 'W0613', # Unused argument 25 'W0613', # Unused argument
26 ] 26 ]
27 results.extend(input_api.RunTests( 27 results.extend(input_api.RunTests(
28 input_api.canned_checks.GetPylint( 28 input_api.canned_checks.GetPylint(
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 104
105 def CheckChangeOnCommit(input_api, output_api): 105 def CheckChangeOnCommit(input_api, output_api):
106 output = [] 106 output = []
107 output.extend(CommonChecks(input_api, output_api, [])) 107 output.extend(CommonChecks(input_api, output_api, []))
108 output.extend(input_api.canned_checks.CheckDoNotSubmit( 108 output.extend(input_api.canned_checks.CheckDoNotSubmit(
109 input_api, 109 input_api,
110 output_api)) 110 output_api))
111 output.extend(RunGitClTests(input_api, output_api)) 111 output.extend(RunGitClTests(input_api, output_api))
112 return output 112 return output
OLDNEW
« no previous file with comments | « .gitignore ('k') | git-cl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698