code: def lint(to_lint):
      
      exit_code = 0
      for linter, options in (('pyflakes', []), ('pep8', [])):
          try:
              output = local[linter](*(options + to_lint))
          except commands.ProcessExecutionError as e:
              output = e.stdout
  
          if output:
              exit_code = 1
              print "{0} Errors:".format(linter)
              print output
  
      output = hacked_pep257(to_lint)
      if output:
          exit_code = 1
          print "Docstring Errors:".format(linter.upper())
          print output
  
      sys.exit(exit_code)
docs: Run all linters against a list of files.
  
      :param to_lint: a list of files to lint.