Sha256: 4a98d78b2ae3864b9f821b2962746308bfd30880606c5c832a1da63901ebbdb9

Contents?: true

Size: 941 Bytes

Versions: 45

Compression:

Stored size: 941 Bytes

Contents

#!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""A wrapper script for using pylint from the command line."""

import os
import subprocess
import sys


_HERE = os.path.dirname(os.path.abspath(__file__))
_PYLINT = os.path.join(_HERE, 'third_party', 'pylint.py')
_RC_FILE = os.path.join(_HERE, 'pylintrc')


# Run pylint. We prepend the command-line with the depot_tools rcfile. If
# another rcfile is to be used, passing --rcfile a second time on the command-
# line will work fine.
command = [sys.executable, _PYLINT]
if os.path.isfile(_RC_FILE):
  # The file can be removed to test 'normal' pylint behavior.
  command.append('--rcfile=%s' % _RC_FILE)
command.extend(sys.argv[1:])
try:
  sys.exit(subprocess.call(command))
except KeyboardInterrupt:
  sys.stderr.write('interrupted\n')
  sys.exit(1)

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
libv8-7.8.279.23.0beta1 vendor/depot_tools/pylint.py
libv8-7.4.288.28.0beta1 vendor/depot_tools/pylint.py
libv8-7.3.492.27.3beta1 vendor/depot_tools/pylint.py
libv8-7.3.492.27.1 vendor/depot_tools/pylint.py
libv8-7.3.492.27.0 vendor/depot_tools/pylint.py
libv8-7.3.492.27.0beta1 vendor/depot_tools/pylint.py
libv8-6.7.288.46.1 vendor/depot_tools/pylint.py
libv8-6.7.288.46.0 vendor/depot_tools/pylint.py
libv8-6.7.288.46.1beta0 vendor/depot_tools/pylint.py
libv8-6.3.292.48.1 vendor/depot_tools/pylint.py
libv8-6.3.292.48.0 vendor/depot_tools/pylint.py
libv8-6.3.292.48.0beta2 vendor/depot_tools/pylint.py
libv8-6.3.292.48.0beta1 vendor/depot_tools/pylint.py
libv8-6.2.414.42.1 vendor/depot_tools/pylint.py
libv8-6.2.414.42.0 vendor/depot_tools/pylint.py
libv8-6.2.414.42.0beta1 vendor/depot_tools/pylint.py
libv8-6.0.286.54.3 vendor/depot_tools/pylint.py
libv8-6.0.286.54.2 vendor/depot_tools/pylint.py
libv8-6.0.286.54.1 vendor/depot_tools/pylint.py
libv8-6.0.286.54.0 vendor/depot_tools/pylint.py