diff --git a/README.rst b/README.rst index ec51d69..24c33ef 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 ~~~~~~~~~ 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)