Ignore ez_setup.py properly
This commit is contained in:
parent
a6dae83731
commit
8aedd80d05
1
.flake8
1
.flake8
@ -8,3 +8,4 @@
|
|||||||
# F841: unused variable
|
# F841: unused variable
|
||||||
ignore=E241,E265,F401,E501,F821,F841
|
ignore=E241,E265,F401,E501,F821,F841
|
||||||
max_complexity = 10
|
max_complexity = 10
|
||||||
|
exclude = ez_setup.py
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
[MASTER]
|
||||||
|
ignore=ez_setup.py
|
||||||
|
|
||||||
[MESSAGES CONTROL]
|
[MESSAGES CONTROL]
|
||||||
disable=no-self-use,
|
disable=no-self-use,
|
||||||
super-on-old-class,
|
super-on-old-class,
|
||||||
|
@ -57,8 +57,8 @@ options = {
|
|||||||
# (false-positives)
|
# (false-positives)
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
'exclude': ['scripts.ez_setup'],
|
'exclude': [],
|
||||||
'exclude_pep257': ['test_*'], # FIXME exclude ez_setup
|
'exclude_pep257': ['test_*', 'ez_setup'],
|
||||||
'other': {
|
'other': {
|
||||||
'pylint': ['--output-format=colorized', '--reports=no',
|
'pylint': ['--output-format=colorized', '--reports=no',
|
||||||
'--rcfile=.pylintrc'],
|
'--rcfile=.pylintrc'],
|
||||||
@ -174,6 +174,7 @@ def _get_args(checker):
|
|||||||
args += ['--disable=' + ','.join(options['disable']['pylint'])]
|
args += ['--disable=' + ','.join(options['disable']['pylint'])]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
if options['exclude']:
|
||||||
try:
|
try:
|
||||||
args += ['--ignore=' + ','.join(options['exclude'])]
|
args += ['--ignore=' + ','.join(options['exclude'])]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
@ -187,6 +188,7 @@ def _get_args(checker):
|
|||||||
args += ['--ignore=' + ','.join(options['disable']['flake8'])]
|
args += ['--ignore=' + ','.join(options['disable']['flake8'])]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
|
if options['exclude']:
|
||||||
try:
|
try:
|
||||||
args += ['--exclude=' + ','.join(options['exclude'])]
|
args += ['--exclude=' + ','.join(options['exclude'])]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user