Skip to content

Commit

Permalink
The Pylint command is now configurable, so e.g. django-lint can be us…
Browse files Browse the repository at this point in the history
…ed instead. Fixes #18.

Thanks @borwick
  • Loading branch information
akaihola committed May 2, 2013
1 parent 12933b4 commit 4b72cdf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyflymake.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ class PylintRunner(LintRunner):
r'\s*\[(?P<error_type>[WECR])(?P<error_number>[^\]]+)]'
r'\s*(?P<description>.*)$')

command = 'pylint'

sane_default_ignore_codes = set([
"C0103", # Naming convention
"C0111", # Missing Docstring
Expand All @@ -133,6 +131,10 @@ class PylintRunner(LintRunner):

custom_ignore_codes = 'IGNORE_CODES_PYLINT'

def __init__(self, *args, **kwargs):
super(PylintRunner, self).__init__(*args, **kwargs)
self.command = self.config.PYLINT_COMMAND

@staticmethod
def fixup_data(data):
fixup_map = PylintRunner.fixup_map
Expand Down Expand Up @@ -315,6 +317,7 @@ def __init__(self):
TEST_RUNNER_OUTPUT='stderr',
ENV={},
PYLINT=True,
PYLINT_COMMAND='pylint',
PYCHECKER=False,
PEP8=True,
PYFLAKES=True,
Expand Down

0 comments on commit 4b72cdf

Please sign in to comment.