module documentation

Python code format's checker. By default, try to follow Guido's style guide : https://www.python.org/doc/essays/styleguide/ Some parts of the process_token method is based from The Tab Nanny std module.

Class FormatChecker Formatting checker.
Class TokenWrapper A wrapper for readable access to token information.
Function register Undocumented
Constant MSGS Undocumented
Function _last_token_on_line_is Undocumented
Constant _JUNK_TOKENS Undocumented
Constant _KEYWORD_TOKENS Undocumented
def register(linter: PyLinter): (source)

Undocumented

Undocumented

Value
{'C0301': ('Line too long (%s/%s)',
           'line-too-long',
           'Used when a line is longer than a given number of characters.'),
 'C0302': ('Too many lines in module (%s/%s)',
           'too-many-lines',
           'Used when a module has too many lines, reducing its readability.'),
 'C0303': ('Trailing whitespace', 'trailing-whitespace', 'Used when there is whi
...
def _last_token_on_line_is(tokens: TokenWrapper, line_end: int, token: str) -> bool: (source)

Undocumented

_JUNK_TOKENS = (source)

Undocumented

Value
set([tokenize.COMMENT, tokenize.NL])
_KEYWORD_TOKENS: set[str] = (source)

Undocumented

Value
set(['assert',
     'del',
     'elif',
     'except',
     'for',
     'if',
     'in',
...