class_docstr: Manage running checks for a file and aggregate the results.
class_docstr_tok: ["Manage","running","checks","for","a","file","and","aggregate","the","results","."]
docstr: Run checks against the file.
code: def run_checks(self) -> tuple[str, Results, dict[str, int]]:
      """Run checks against the file."""
      if self.processor is None or not self.should_process:
          return self.display_name, self.results, self.statistics
  
      try:
          self.run_ast_checks()
          self.process_tokens()
      except (SyntaxError, tokenize.TokenError) as e:
          code = (
              "E902" if isinstance(e, tokenize.TokenError) else "E999"
          )
          row, column = self._extract_syntax_information(e)
          self.report(
              code, row, column, f"{type(e).__name__}: {e.args[0]}"
          )
          return self.display_name, self.results, self.statistics
  
      logical_lines = self.processor.statistics["logical lines"]
      self.statistics["logical lines"] = logical_lines
      return self.display_name, self.results, self.statistics
  
imports: from __future__ import annotations
  import argparse
  import contextlib
  import errno
  import logging
  import multiprocessing.pool
  import operator
  import signal
  import tokenize
  from typing import Any
  from typing import Generator
  from typing import List
  from typing import Optional
  from typing import Sequence
  from typing import Tuple
  from flake8 import defaults
  from flake8 import exceptions
  from flake8 import processor
  from flake8 import utils
  from flake8._compat import FSTRING_START
  from flake8.discover_files import expand_paths
  from flake8.options.parse_args import parse_args
  from flake8.plugins.finder import Checkers
  from flake8.plugins.finder import LoadedPlugin
  from flake8.style_guide import StyleGuideManager
label_desc: Use image node_id 11 for calling the FileChecker obj's underlying member method code with example usage: obj.run_checks() and returns: self,  self,  self, self,  self,  self, self,  self,  self