From 7f120a31ad97104b2e6143feb679fbba03d15fe9 Mon Sep 17 00:00:00 2001 From: kittsil Date: Thu, 9 Aug 2018 19:46:24 -0500 Subject: [PATCH 1/3] Handling `pylint_extra` arguments. Handle dictionaries like ``` "pylint_extra": { "max-line-length": 120 } ``` or lists like ``` "pylint_extra": ["--max-line-length=120"] ``` --- pylinter.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pylinter.py b/pylinter.py index 6f3f23e..5632f3d 100755 --- a/pylinter.py +++ b/pylinter.py @@ -478,6 +478,13 @@ def run(self): if self.disable_msgs: options.append('--disable=%s' % self.disable_msgs) + if isinstance(self.extra_pylint_args, dict): + for arg in self.extra_pylint_args.items(): + options.append('--%s=%s' % arg) + elif isinstance(self.extra_pylint_args, list): + for arg in self.extra_pylint_args: + options.append(arg) + options.append(self.file_name) command.extend(options) From 5433037e40df39e25b1b71def64708b3b14ad5d9 Mon Sep 17 00:00:00 2001 From: kittsil Date: Thu, 9 Aug 2018 19:52:44 -0500 Subject: [PATCH 2/3] Update README.rst --- README.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.rst b/README.rst index ec51d69..a2fcb4b 100755 --- a/README.rst +++ b/README.rst @@ -143,6 +143,17 @@ provide a full path to the ``lint.py`` module of your Pylint installation! * **use_icons**: Set to ``true`` if you want to display icons instead of dots in the margin. +* **pylint_extra**: Any extra command line arguemtns to ``pylint``. This can be a + ``dict`` as + + "pylint_extra": { + "max-line-length": 120 + } + + or a ``list`` as + + "pylint_extra": ["--max-line-length=120"] + Multiconf ~~~~~~~~~ From 6a92d8195c3e54f1b58d9e15ab5e2d35a9a8e581 Mon Sep 17 00:00:00 2001 From: kittsil Date: Thu, 9 Aug 2018 19:54:40 -0500 Subject: [PATCH 3/3] Update README.rst --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index a2fcb4b..24c33ef 100755 --- a/README.rst +++ b/README.rst @@ -144,13 +144,13 @@ provide a full path to the ``lint.py`` module of your Pylint installation! the margin. * **pylint_extra**: Any extra command line arguemtns to ``pylint``. This can be a - ``dict`` as + ``dict`` as :: "pylint_extra": { "max-line-length": 120 } - or a ``list`` as + or a ``list`` as :: "pylint_extra": ["--max-line-length=120"]