You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by kl...@apache.org on 2018/07/13 20:56:34 UTC
[5/5] mesos git commit: Updated pylint usage in mesos-style.py to be
less verbose.
Updated pylint usage in mesos-style.py to be less verbose.
We started using Pylint 1.9 a few days ago to lint `.py` files, and this
version of pylint always prints a score after linting is complete. To
make the output less verbose, we now use the option `--score=n` when
using pylint in mesos-style.py.
Review: https://reviews.apache.org/r/67907/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c2bdf07e
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c2bdf07e
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c2bdf07e
Branch: refs/heads/master
Commit: c2bdf07eb8771e7e00173606bedf2445a3a709b9
Parents: ec87ab5
Author: Armand Grillet <ag...@mesosphere.io>
Authored: Fri Jul 13 22:37:50 2018 +0200
Committer: Kevin Klues <kl...@gmail.com>
Committed: Fri Jul 13 22:41:27 2018 +0200
----------------------------------------------------------------------
support/mesos-style.py | 2 +-
support/python3/mesos-style.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/c2bdf07e/support/mesos-style.py
----------------------------------------------------------------------
diff --git a/support/mesos-style.py b/support/mesos-style.py
index 0795959..32a5f17 100755
--- a/support/mesos-style.py
+++ b/support/mesos-style.py
@@ -420,7 +420,7 @@ class PyLinter(LinterBase):
tox_env='py27-lint')
else:
process = self.run_command_in_virtualenv(
- 'pylint --rcfile={rcfile} {files}'.format(
+ 'pylint --score=n --rcfile={rcfile} {files}'.format(
rcfile=self.pylint_config,
files=' '.join(filtered_source_files)))
http://git-wip-us.apache.org/repos/asf/mesos/blob/c2bdf07e/support/python3/mesos-style.py
----------------------------------------------------------------------
diff --git a/support/python3/mesos-style.py b/support/python3/mesos-style.py
index fbf60c6..b15da95 100755
--- a/support/python3/mesos-style.py
+++ b/support/python3/mesos-style.py
@@ -423,7 +423,7 @@ class PyLinter(LinterBase):
tox_env='py27-lint')
else:
process = self.run_command_in_virtualenv(
- 'pylint --rcfile={rcfile} {files}'.format(
+ 'pylint --score=n --rcfile={rcfile} {files}'.format(
rcfile=self.pylint_config,
files=' '.join(filtered_source_files)))