Commits

Ian Cordasco committed 021a2c7 Merge

I'm not exactly a fan of skip_file taking pep8style.

  • Participants
  • Parent commits 93aaaa4, e7ecc89
  • Branches fix_excludes

Comments (0)

Files changed (2)

File flake8/run.py

     for path in paths:
         if os.path.isdir(path):
             for dirpath, dirnames, filenames in os.walk(path):
+                if pep8style.excluded(dirpath):
+                    continue
                 for filename in filenames:
                     if not filename.endswith('.py'):
                         continue
                     fullpath = os.path.join(dirpath, filename)
-                    if not skip_file(fullpath):
+                    if not skip_file(fullpath) or pep8style.excluded(fullpath):
                         yield fullpath
 
         else:
-            if not skip_file(path):
+            if not skip_file(path) or pep8style.excluded(fullpath):
                 yield path
 
 
             seen.add(file_)
             if not file_.endswith('.py'):
                 continue
-            if skip_file(file_):
+            if skip_file(file_, pep8style):
                 continue
             yield file_
 

File flake8/util.py

File contents unchanged.