mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 12:16:53 +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)
|
||||
|
||||
|
||||
def check_file(path, ignore=(), complexity=-1, reporter=None):
|
||||
def check_file(path, ignore=(), complexity=-1):
|
||||
flake8_style = get_style_guide(
|
||||
config_file=DEFAULT_CONFIG,
|
||||
ignore=ignore, max_complexity=complexity, reporter=reporter)
|
||||
config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity)
|
||||
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(
|
||||
config_file=DEFAULT_CONFIG,
|
||||
ignore=ignore, max_complexity=complexity, reporter=reporter)
|
||||
return flake8_style.input_file('-', lines=code.split('\n'))
|
||||
config_file=DEFAULT_CONFIG, ignore=ignore, max_complexity=complexity)
|
||||
return flake8_style.input_file('-', lines=code.splitlines())
|
||||
|
||||
|
||||
class Flake8Command(setuptools.Command):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue