Commits

Tarek Ziadé  committed 5a53ef8 Merge

merged

  • Participants
  • Parent commits 045e585, 4a68384

Comments (0)

Files changed (2)

File CONTRIBUTORS.txt

 Contributors:
 
 - Tamás Gulácsi
+- Nicolas Dumazet
 

File flake8/run.py

 
 
 def _get_files(repo, **kwargs):
+    seen = set()
     for rev in xrange(repo[kwargs['node']], len(repo)):
         for file_ in repo[rev].files():
+            if file_ in seen:
+                continue
+            seen.add(file_)
             if not file_.endswith('.py'):
                 continue
             if skip_file(file_):
     for file_ in _get_files(repo, **kwargs):
         warnings += check_file(file_)
 
-    strict = ui.config('flake8', 'strict')
-    if strict is None:
-        strict = True
+    strict = ui.configbool('flake8', 'strict', default=True)
 
-    if strict.lower() in ('1', 'true'):
+    if strict:
         return warnings
 
     return 0