code: def get_noqa_suppressions(file_contents):
      
      ignore_whole_file = False
      ignore_lines = set()
      for line_number, line in enumerate(file_contents):
          if _FLAKE8_IGNORE_FILE.search(line):
              ignore_whole_file = True
          if _PEP8_IGNORE_LINE.search(line):
              ignore_lines.add(line_number + 1)
      return ignore_whole_file, ignore_lines
docs: Finds all pep8/flake8 suppression messages
  
      :param file_contents:
          A list of file lines
      :return:
          A pair - the first is whether to ignore the whole file, the
          second is a set of (0-indexed) line numbers to ignore.