= , d Z ddlZddlZddlZddlZddlZddlmZ ddlmZ ddlm Z ddlm Z ddlmZ ddlmZ dd l mZ dd l mZ ddlmZ ej e Z eej ej g Z eej ej ej ej g Ze eeeeef f Zee e e e ef Z G d d Zdej de!fdZ"dej de!fdZ#dej de!fdZ$dededefdZ%dedefdZ&dedefdZ'dS )zFModule containing our file processor that tokenizes a file for checks. N)Any)Dict) Generator)List)Optional)Tuple)defaults)utils)LoadedPluginc | e Zd ZdZdZ d(dedej dee e ddfdZ ede ej fd Zej d eded fd Zd)d Zd)dZd)dZdeddfdZdeddfdZd)dZdefdZdej fdZ de!eeef fdZ"dej deeddf fdZ#de$ee%f de$ee&f de$ee&f fdZ'deej ddf fdZ(dedede$eef fd Z)d edee fd!Z*defd"Z+de e fd#Z,de e fd$Z-de e fd%Z.de%fd&Z/d)d'Z0dS )* FileProcessora> Processes a file and holdes state. This processes a file by generating tokens, logical and physical lines, and AST trees. This also provides a way of passing state about the file to checks expecting that state. Any public attribute on this object can be requested by a plugin. The known public attributes are: - :attr:`blank_before` - :attr:`blank_lines` - :attr:`checker_state` - :attr:`indent_char` - :attr:`indent_level` - :attr:`line_number` - :attr:`logical_line` - :attr:`max_line_length` - :attr:`max_doc_length` - :attr:`multiline` - :attr:`noqa` - :attr:`previous_indent_level` - :attr:`previous_logical` - :attr:`previous_unindented_logical_line` - :attr:`tokens` - :attr:`file_tokens` - :attr:`total_lines` - :attr:`verbose` FNfilenameoptionslinesreturnc || _ || _ ||n| | _ | d| _ d| _ i | _ i | _ |j | _ d| _ d| _ |j | _ d| _ d| _ |j | _ |j | _ d| _ d| _ d| _ d| _ g | _ t- | j | _ |j | _ ddi| _ d| _ d| _ dS )z]Initialice our file processor. :param filename: Name of the file to process Nr F logical lines)r r read_linesr strip_utf_bomblank_beforeblank_lines_checker_states checker_statehang_closingindent_charindent_levelindent_sizeline_numberlogical_linemax_line_lengthmax_doc_length multilineprevious_indent_levelprevious_logical previous_unindented_logical_linetokenslentotal_linesverbose statistics_file_tokens_noqa_line_mapping)selfr r r s b/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/flake8/processor.py__init__zFileProcessor.__init__<