mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
Minor hg hook refactoring
This commit is contained in:
parent
b049912317
commit
f678e5daee
1 changed files with 1 additions and 3 deletions
|
|
@ -100,9 +100,7 @@ def hg_hook(ui, repo, **kwargs):
|
||||||
complexity = ui.config('flake8', 'complexity', default=-1)
|
complexity = ui.config('flake8', 'complexity', default=-1)
|
||||||
strict = ui.configbool('flake8', 'strict', default=True)
|
strict = ui.configbool('flake8', 'strict', default=True)
|
||||||
ignore = ui.config('flake8', 'ignore', default=None)
|
ignore = ui.config('flake8', 'ignore', default=None)
|
||||||
config = ui.config('flake8', 'config', default=True)
|
config = ui.config('flake8', 'config', default=DEFAULT_CONFIG)
|
||||||
if config is True:
|
|
||||||
config = DEFAULT_CONFIG
|
|
||||||
|
|
||||||
paths = _get_files(repo, **kwargs)
|
paths = _get_files(repo, **kwargs)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue