Commits

Florent Xicluna  committed 38244d3

Make it clear that Flake8Command is currently broken

  • Participants
  • Parent commits 7941e1e
  • Branches flint-merge

Comments (0)

Files changed (2)

File flake8/main.py

 import pyflakes.checker
 import select
 from flake8 import mccabe
-from flake8.util import _initpep8, skip_file, get_parser, Flake8Reporter
+from flake8.util import skip_file, get_parser, Flake8Reporter
 
 pep8style = None
 
                     yield "%s.py" % filename
 
         def run(self):
-            _initpep8()
+            # XXX the setuptools command is currently broken
+            # _initpep8()
 
             # _get_python_files can produce the same file several
             # times, if one of its paths is a parent of another. Keep

File flake8/util.py

     return _NOQA.search(content) is not None
 
 
-def _initpep8(config_file=True):
-    # default pep8 setup
-    global pep8style
-    import pep8
-    if pep8style is None:
-        pep8style = pep8.StyleGuide(config_file=config_file)
-    pep8style.options.physical_checks = pep8.find_checks('physical_line')
-    pep8style.options.logical_checks = pep8.find_checks('logical_line')
-    pep8style.options.counters = dict.fromkeys(pep8.BENCHMARK_KEYS, 0)
-    pep8style.options.messages = {}
-    if not pep8style.options.max_line_length:
-        pep8style.options.max_line_length = 79
-    pep8style.args = []
-    return pep8style
-
-
 error_mapping = {
     'W402': (messages.UnusedImport,),
     'W403': (messages.ImportShadowedByLoopVar,),