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

Side by Side Diff: native_client_sdk/PRESUBMIT.py

Issue 813143002: [NaCl SDK] Disable relative import python presubmit warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years 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 | no next file » | 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 isolate. 5 """Top-level presubmit script for isolate.
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 gcl. 8 details on the presubmit API built into gcl.
9 """ 9 """
10 10
11 11
12 def CommonChecks(input_api, output_api): 12 def CommonChecks(input_api, output_api):
13 output = [] 13 output = []
14 disabled_warnings = [ 14 disabled_warnings = [
15 'F0401', # Unable to import module 15 'F0401', # Unable to import module
16 'R0401', # Cyclic import 16 'R0401', # Cyclic import
17 'W0613', # Unused argument 17 'W0613', # Unused argument
18 'W0403', # relative import warnings
18 'E1103', # subprocess.communicate() generates these :( 19 'E1103', # subprocess.communicate() generates these :(
19 'R0201', # method could be function (doesn't reference self) 20 'R0201', # method could be function (doesn't reference self)
20 ] 21 ]
21 black_list = [ 22 black_list = [
22 r'src[\\\/]build_tools[\\\/]tests[\\\/].*', 23 r'src[\\\/]build_tools[\\\/]tests[\\\/].*',
23 r'src[\\\/]build_tools[\\\/]sdk_tools[\\\/]third_party[\\\/].*', 24 r'src[\\\/]build_tools[\\\/]sdk_tools[\\\/]third_party[\\\/].*',
24 r'src[\\\/]doc[\\\/]*', 25 r'src[\\\/]doc[\\\/]*',
25 r'src[\\\/]gonacl_appengine[\\\/]*', 26 r'src[\\\/]gonacl_appengine[\\\/]*',
26 ] 27 ]
27 canned = input_api.canned_checks 28 canned = input_api.canned_checks
(...skipping 18 matching lines...) Expand all
46 }, 47 },
47 'tryserver.chromium.win': { 48 'tryserver.chromium.win': {
48 'win_nacl_sdk': set(['defaulttests']), 49 'win_nacl_sdk': set(['defaulttests']),
49 'win_nacl_sdk_build': set(['defaulttests']), 50 'win_nacl_sdk_build': set(['defaulttests']),
50 }, 51 },
51 'tryserver.chromium.mac': { 52 'tryserver.chromium.mac': {
52 'mac_nacl_sdk': set(['defaulttests']), 53 'mac_nacl_sdk': set(['defaulttests']),
53 'mac_nacl_sdk_build': set(['defaulttests']), 54 'mac_nacl_sdk_build': set(['defaulttests']),
54 } 55 }
55 } 56 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698