diff options
| author | Florian Rathgeber <florian.rathgeber@gmail.com> | 2014-03-23 18:52:35 +0000 |
|---|---|---|
| committer | Florian Rathgeber <florian.rathgeber@gmail.com> | 2014-03-23 18:52:35 +0000 |
| commit | f678e5daee203111aa96209dfca331ded39a69f5 (patch) | |
| tree | 3d5ddf9c2f663cde3b45c02ac12868118e9a7ffe /flake8 | |
| parent | b0499123171ade5c472fba46ee711411f1d5fa2c (diff) | |
| download | flake8-f678e5daee203111aa96209dfca331ded39a69f5.tar.gz | |
Minor hg hook refactoring
Diffstat (limited to 'flake8')
| -rw-r--r-- | flake8/hooks.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/flake8/hooks.py b/flake8/hooks.py index 403dcf9..c84c382 100644 --- a/flake8/hooks.py +++ b/flake8/hooks.py @@ -100,9 +100,7 @@ def hg_hook(ui, repo, **kwargs): complexity = ui.config('flake8', 'complexity', default=-1) strict = ui.configbool('flake8', 'strict', default=True) ignore = ui.config('flake8', 'ignore', default=None) - config = ui.config('flake8', 'config', default=True) - if config is True: - config = DEFAULT_CONFIG + config = ui.config('flake8', 'config', default=DEFAULT_CONFIG) paths = _get_files(repo, **kwargs) |
