From 714ea7a0e2abfded985aa522eb8aaf3d6513473c Mon Sep 17 00:00:00 2001 From: Stefan Scherfke Date: Wed, 4 Jan 2012 09:16:51 +0100 Subject: [PATCH] Fixed issue #6. --- flake8/run.py | 1 + 1 file changed, 1 insertion(+) diff --git a/flake8/run.py b/flake8/run.py index d3a803c..330bb2b 100644 --- a/flake8/run.py +++ b/flake8/run.py @@ -86,6 +86,7 @@ def hg_hook(ui, repo, **kwargs): pep8.options = _PEP8Options() pep8.options.physical_checks = pep8.find_checks('physical_line') pep8.options.logical_checks = pep8.find_checks('logical_line') + pep8.options.counters = dict.fromkeys(pep8.BENCHMARK_KEYS, 0) pep8.args = [] complexity = ui.configint('flake8', 'complexity', default=-1) warnings = 0