From a18a3bf8d681d1ea27fdabc4e870acc9d81c5cb1 Mon Sep 17 00:00:00 2001 From: Henrik Kjellander Date: Fri, 15 Sep 2017 11:19:10 +0200 Subject: [PATCH] Fix Python shebang and license for presubmit_test.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was missed during review of https://codereview.webrtc.org/3010153002 Having python2 in the shebang makes it fail presubmit locally on Mac. Disable 'invalid-name' PyLint rule in 3 places to pass presubmit. NOTRY=True NOTREECHECKS=True TBR=charujain@webrtc.org Bug: none Change-Id: I85cc5783ba11774792cd8c2f6c0b4ff47ad89270 Reviewed-on: https://webrtc-review.googlesource.com/1566 Commit-Queue: Henrik Kjellander Reviewed-by: Patrik Höglund Reviewed-by: Henrik Kjellander Cr-Commit-Position: refs/heads/master@{#19850} --- presubmit_test.py | 12 ++++++++++-- pylintrc | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/presubmit_test.py b/presubmit_test.py index 2d0dc55c09..c88beaea19 100755 --- a/presubmit_test.py +++ b/presubmit_test.py @@ -1,4 +1,13 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python + +# Copyright 2017 The WebRTC project authors. All Rights Reserved. +# +# Use of this source code is governed by a BSD-style license +# that can be found in the LICENSE file in the root of the source +# tree. An additional intellectual property rights grant can be found +# in the file PATENTS. All contributing project authors may +# be found in the AUTHORS file in the root of the source tree. + import unittest import PRESUBMIT @@ -37,4 +46,3 @@ class CheckBugEntryField(unittest.TestCase): if __name__ == '__main__': unittest.main() - diff --git a/pylintrc b/pylintrc index 6d40f783ca..083a79f7ff 100644 --- a/pylintrc +++ b/pylintrc @@ -27,6 +27,7 @@ disable= exec-used, fixme, import-error, + invalid-name, missing-docstring, no-init, no-member,