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

Unified Diff: appengine/PRESUBMIT.py

Issue 1860863002: Update copyright notice from Swarming to LUCI; add AUTHORS and CONTRIBUTORS. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: . Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « WATCHLISTS ('k') | appengine/auth_service/PRESUBMIT.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/PRESUBMIT.py
diff --git a/appengine/PRESUBMIT.py b/appengine/PRESUBMIT.py
deleted file mode 100644
index f7eba15c8c8c54af5575b31a4cc8d92faa8e4ce6..0000000000000000000000000000000000000000
--- a/appengine/PRESUBMIT.py
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 2013 The Swarming Authors. All rights reserved.
-# Use of this source code is governed by the Apache v2.0 license that can be
-# found in the LICENSE file.
-
-"""Top-level presubmit script for swarming.
-
-See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for
-details on the presubmit API built into gcl.
-"""
-
-
-def header(input_api):
- """Returns the expected license header regexp for this project."""
- current_year = int(input_api.time.strftime('%Y'))
- allowed_years = (str(s) for s in reversed(xrange(2011, current_year + 1)))
- years_re = '(' + '|'.join(allowed_years) + ')'
- license_header = (
- r'.*? Copyright %(year)s The Swarming Authors\. '
- r'All rights reserved\.\n'
- r'.*? Use of this source code is governed by the Apache v2\.0 license '
- r'that can be\n'
- r'.*? found in the LICENSE file\.(?: \*/)?\n'
- ) % {
- 'year': years_re,
- }
- return license_header
-
-
-def CommonChecks(input_api, output_api):
- excluded = [
- r'-build\.(js|html)$',
- r'/test',
- r'.+_pb2\.py$',
- r'.*third_party.*',
- ]
- return input_api.canned_checks.PanProjectChecks(
- input_api, output_api,
- excluded_paths=excluded,
- owners_check=False,
- license_header=header(input_api))
-
-
-def CheckChangeOnUpload(input_api, output_api):
- return CommonChecks(input_api, output_api)
-
-
-def CheckChangeOnCommit(input_api, output_api):
- return CommonChecks(input_api, output_api)
« no previous file with comments | « WATCHLISTS ('k') | appengine/auth_service/PRESUBMIT.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698