Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Pylinter.sublime-settings
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@
"ignore": [],
// a list of strings of individual errors to disable, ex: ["C0301"]
"disable": [],
"plugins": []
"plugins": [],
// extra arguments to pass pylint, ex: ["--extension-pkg-whitelist=lxml"]
"pylint_extra": []
}
6 changes: 5 additions & 1 deletion pylinter.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def read_settings(cls):
plugins = cls.get_or('plugins', None)

# Add custom runtime settings
pylint_extra = PylSet.get_or('pylint_extra', None)
pylint_extra = cls.get_or('pylint_extra', None)

disable = cls.get_or('disable', [])
# Added ignore for trailing whitespace (false positives bug in
Expand Down Expand Up @@ -478,6 +478,10 @@ def run(self):
if self.disable_msgs:
options.append('--disable=%s' % self.disable_msgs)

if self.extra_pylint_args:
for extra_arg in self.extra_pylint_args:
options.append(extra_arg)

options.append(self.file_name)
command.extend(options)

Expand Down