class documentation

Load a Python source file, tokenize it, check coding style.

Method __init__ Undocumented
Method build_tokens_line Build a logical line from tokens.
Method check_all Run all checks on the input file.
Method check_ast Build the file's AST and run all AST checks.
Method check_logical Build a line from tokens and run all logical checks on it.
Method check_physical Run all physical checks on a raw input line.
Method generate_tokens Tokenize file, run physical line checks and yield tokens.
Method init_checker_state Prepare custom state for the specific checker plugin.
Method maybe_check_physical If appropriate for token, check current physical line(s).
Method readline Get the next line from the input buffer.
Method report_invalid_syntax Check if the syntax is valid.
Method run_check Run a check plugin.
Instance Variable blank_before Undocumented
Instance Variable blank_lines Undocumented
Instance Variable checker_state Undocumented
Instance Variable filename Undocumented
Instance Variable hang_closing Undocumented
Instance Variable indent_char Undocumented
Instance Variable indent_level Undocumented
Instance Variable line_number Undocumented
Instance Variable lines Undocumented
Instance Variable logical_line Undocumented
Instance Variable max_doc_length Undocumented
Instance Variable max_line_length Undocumented
Instance Variable multiline Undocumented
Instance Variable noqa Undocumented
Instance Variable physical_line Undocumented
Instance Variable previous_indent_level Undocumented
Instance Variable previous_logical Undocumented
Instance Variable previous_unindented_logical_line Undocumented
Instance Variable report Undocumented
Instance Variable report_error Undocumented
Instance Variable tokens Undocumented
Instance Variable total_lines Undocumented
Instance Variable verbose Undocumented
Instance Variable _ast_checks Undocumented
Instance Variable _checker_states Undocumented
Instance Variable _io_error Undocumented
Instance Variable _logical_checks Undocumented
Instance Variable _physical_checks Undocumented
def __init__(self, filename=None, lines=None, options=None, report=None, **kwargs):

Undocumented

def build_tokens_line(self):

Build a logical line from tokens.

def check_all(self, expected=None, line_offset=0):

Run all checks on the input file.

def check_ast(self):

Build the file's AST and run all AST checks.

def check_logical(self):

Build a line from tokens and run all logical checks on it.

def check_physical(self, line):

Run all physical checks on a raw input line.

def generate_tokens(self):

Tokenize file, run physical line checks and yield tokens.

def init_checker_state(self, name, argument_names):

Prepare custom state for the specific checker plugin.

def maybe_check_physical(self, token):

If appropriate for token, check current physical line(s).

def readline(self):

Get the next line from the input buffer.

def report_invalid_syntax(self):

Check if the syntax is valid.

def run_check(self, check, argument_names):

Run a check plugin.

blank_before: int =

Undocumented

blank_lines: int =

Undocumented

checker_state =

Undocumented

filename: str =

Undocumented

hang_closing =

Undocumented

indent_char =

Undocumented

indent_level: int =

Undocumented

line_number: int =

Undocumented

lines =

Undocumented

logical_line =

Undocumented

max_doc_length =

Undocumented

max_line_length =

Undocumented

multiline: bool =

Undocumented

noqa =

Undocumented

physical_line =

Undocumented

previous_indent_level: int =

Undocumented

previous_logical: str =

Undocumented

previous_unindented_logical_line: str =

Undocumented

report =

Undocumented

report_error =

Undocumented

tokens: list =

Undocumented

total_lines =

Undocumented

verbose =

Undocumented

_ast_checks =

Undocumented

_checker_states: dict =

Undocumented

_io_error =

Undocumented

_logical_checks =

Undocumented

_physical_checks =

Undocumented