original_docstring:  checks for the max-line-length setting in .pylintrc 
docstring: checks for the max-line-length setting in .pylintrc
docstring_tokens: checks for the max - line - length setting in . pylintrc
code: def check_max_line_length_configured(repo: RepoLinter) -> None:
      """ checks for the max-line-length setting in .pylintrc """
  
      # default setting
      if "pylintrc" in repo.config:
          if "max_line_length" not in repo.config[CATEGORY]:
              logger.debug("max_line_length not set in config, no need to run.")
              return
  
      config: Optional[ConfigParser] = load_pylintrc(repo)
  
      if not config:
          repo.warning(CATEGORY, ".pylintrc not found")
          return
      if "MASTER" not in config.sections():
          logger.debug("Can't find MASTER entry, dumping config")
          logger.debug(json.dumps(config, indent=4, default=str, ensure_ascii=False))
          return
      try:
          linelength = config.get("MASTER", "max-line-length")
      except NoOptionError:
          repo.warning(CATEGORY, "max-line-length not configured")
          return
      expected = repo.config[CATEGORY]["max_line_length"]
  
      if int(linelength) != int(expected):
          repo.error(
              CATEGORY,
              f"max-line-length wrong, is {linelength}, should be {expected}",
          )
      return
code_tokens: def check_max_line_length_configured ( repo : RepoLinter ) -> None : if "pylintrc" in repo . config : if "max_line_length" not in repo . config [ CATEGORY ] : logger . debug ( "max_line_length not set in config, no need to run." ) return config : Optional [ ConfigParser ] = load_pylintrc ( repo ) if not config : repo . warning ( CATEGORY , ".pylintrc not found" ) return if "MASTER" not in config . sections ( ) : logger . debug ( "Can't find MASTER entry, dumping config" ) logger . debug ( json . dumps ( config , indent = 4 , default = str , ensure_ascii = False ) ) return try : linelength = config . get ( "MASTER" , "max-line-length" ) except NoOptionError : repo . warning ( CATEGORY , "max-line-length not configured" ) return expected = repo . config [ CATEGORY ] [ "max_line_length" ] if int ( linelength ) != int ( expected ) : repo . error ( CATEGORY , f"max-line-length wrong, is {linelength}, should be {expected}" , ) return
short_docstring: checks for the max-line-length setting in .pylintrc
short_docstring_tokens: checks for the max - line - length setting in . pylintrc
comment: """ checks for the max-line-length setting in .pylintrc """$SEP$# default setting