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

Side by Side Diff: PRESUBMIT.py

Issue 2177353002: Add top level app element (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@hello-oauth
Patch Set: Address feedback and introduce new res/ layer of direction Created 4 years, 4 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 | appengine/swarming/app.yaml » ('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 2013 The LUCI Authors. All rights reserved. 1 # Copyright 2013 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Top-level presubmit script for LUCI. 5 """Top-level presubmit script for LUCI.
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
(...skipping 11 matching lines...) Expand all
22 r'.*? that can be found in the LICENSE file\.(?: \*/)?\n' 22 r'.*? that can be found in the LICENSE file\.(?: \*/)?\n'
23 ) % { 23 ) % {
24 'year': years_re, 24 'year': years_re,
25 } 25 }
26 return license_header 26 return license_header
27 27
28 28
29 def CommonChecks(input_api, output_api): 29 def CommonChecks(input_api, output_api):
30 excluded = [ 30 excluded = [
31 r'.+-build\.(js|html)$', 31 r'.+-build\.(js|html)$',
32 r'.+/build/.+(js|html)$',
32 r'/test', 33 r'/test',
33 r'.+_pb2\.py$', 34 r'.+_pb2\.py$',
34 r'.*third_party.*', 35 r'.*third_party.*',
35 ] 36 ]
36 return input_api.canned_checks.PanProjectChecks( 37 return input_api.canned_checks.PanProjectChecks(
37 input_api, output_api, 38 input_api, output_api,
38 excluded_paths=excluded, 39 excluded_paths=excluded,
39 owners_check=False, 40 owners_check=False,
40 license_header=header(input_api)) 41 license_header=header(input_api))
41 42
42 43
43 def CheckChangeOnUpload(input_api, output_api): 44 def CheckChangeOnUpload(input_api, output_api):
44 return CommonChecks(input_api, output_api) 45 return CommonChecks(input_api, output_api)
45 46
46 47
47 def CheckChangeOnCommit(input_api, output_api): 48 def CheckChangeOnCommit(input_api, output_api):
48 return CommonChecks(input_api, output_api) 49 return CommonChecks(input_api, output_api)
OLDNEW
« no previous file with comments | « no previous file | appengine/swarming/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698