Skip to content

Commit

Permalink
Ignore ez_setup.py properly
Browse files Browse the repository at this point in the history
  • Loading branch information
The-Compiler committed May 15, 2014
1 parent a6dae83 commit 8aedd80
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
# F841: unused variable
ignore=E241,E265,F401,E501,F821,F841
max_complexity = 10
exclude = ez_setup.py
3 changes: 3 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[MASTER]
ignore=ez_setup.py

[MESSAGES CONTROL]
disable=no-self-use,
super-on-old-class,
Expand Down
22 changes: 12 additions & 10 deletions scripts/run_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
# (false-positives)
],
},
'exclude': ['scripts.ez_setup'],
'exclude_pep257': ['test_*'], # FIXME exclude ez_setup
'exclude': [],
'exclude_pep257': ['test_*', 'ez_setup'],
'other': {
'pylint': ['--output-format=colorized', '--reports=no',
'--rcfile=.pylintrc'],
Expand Down Expand Up @@ -174,10 +174,11 @@ def _get_args(checker):
args += ['--disable=' + ','.join(options['disable']['pylint'])]
except KeyError:
pass
try:
args += ['--ignore=' + ','.join(options['exclude'])]
except KeyError:
pass
if options['exclude']:
try:
args += ['--ignore=' + ','.join(options['exclude'])]
except KeyError:
pass
try:
args += options['other']['pylint']
except KeyError:
Expand All @@ -187,10 +188,11 @@ def _get_args(checker):
args += ['--ignore=' + ','.join(options['disable']['flake8'])]
except KeyError:
pass
try:
args += ['--exclude=' + ','.join(options['exclude'])]
except KeyError:
pass
if options['exclude']:
try:
args += ['--exclude=' + ','.join(options['exclude'])]
except KeyError:
pass
try:
args += options['other']['flake8']
except KeyError:
Expand Down

0 comments on commit 8aedd80

Please sign in to comment.