mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-15 00:44:44 +00:00
Remove the obsolete argument 'reporter' of check_code and check_file
This commit is contained in:
parent
1496579fb2
commit
fa092c0294
1 changed files with 5 additions and 7 deletions
|
|
@ -41,18 +41,16 @@ def main():
|
||||||
raise SystemExit(1)
|
raise SystemExit(1)
|
||||||
|
|
||||||
|
|
||||||
def check_file(path, ignore=(), complexity=-1, reporter=None):
|
def check_file(path, ignore=(), complexity=-1):
|
||||||
flake8_style = get_style_guide(
|
flake8_style = get_style_guide(
|
||||||
config_file=DEFAULT_CONFIG,
|
config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity)
|
||||||
ignore=ignore, max_complexity=complexity, reporter=reporter)
|
|
||||||
return flake8_style.input_file(path)
|
return flake8_style.input_file(path)
|
||||||
|
|
||||||
|
|
||||||
def check_code(code, ignore=(), complexity=-1, reporter=None):
|
def check_code(code, ignore=(), complexity=-1):
|
||||||
flake8_style = get_style_guide(
|
flake8_style = get_style_guide(
|
||||||
config_file=DEFAULT_CONFIG,
|
config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity)
|
||||||
ignore=ignore, max_complexity=complexity, reporter=reporter)
|
return flake8_style.input_file('-', lines=code.splitlines())
|
||||||
return flake8_style.input_file('-', lines=code.split('\n'))
|
|
||||||
|
|
||||||
|
|
||||||
class Flake8Command(setuptools.Command):
|
class Flake8Command(setuptools.Command):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue