Some various utilities and helper classes, most of them used in the main pylint class.
Module | ast |
Undocumented |
Module | docs |
Various helper functions to create the docs of a linter object. |
Module | file |
Undocumented |
Module | linterstats |
No module docstring; 5/5 classes documented |
Module | pragma |
No module docstring; 0/7 constant, 0/2 function, 3/3 exceptions, 0/1 class documented |
Module | utils |
No module docstring; 0/7 type alias, 0/1 type variable, 0/2 constant, 2/3 functions documented |
From __init__.py
:
Class |
|
No class docstring; 0/5 instance variable, 2/4 methods documented |
Class |
|
Hold internal state specific to the currently analyzed file. |
Class |
|
A wrapper around isort API that changed between versions 4 and 5. |
Class |
|
Class used to linter stats. |
Class |
|
TypedDict to store counts of types of messages and statements. |
Function | decoding |
Undocumented |
Function | diff |
Given an old and new int value, return a string representing the difference. |
Function | format |
Format an option's section using the INI format. |
Function | get |
DEPRECATED: Retrieve an option defined by the given *checker* or by all known option providers. |
Function | get |
Return the module name and the frame id in the module. |
Function | get |
Format an option's section using as a ReStructuredText formatted output. |
Function | get |
Permit to get a title formatted as ReStructuredText test (underlined with a chosen character). |
Function | merge |
Used to merge multiple stats objects into a new one when pylint is run in parallel mode. |
Function | normalize |
Wrap the text on the given line length. |
Function | print |
Output a full documentation in ReST format. |
Function | register |
Load all module and package in the given directory, looking for a 'register' function in each one, used to register pylint checkers. |
Function | tokenize |
Undocumented |
Constant | HAS |
Undocumented |
Function | _check |
Undocumented |
Function | _format |
Return the user input's value from a 'compiled' value. |
Function | _splitstrip |
Return a list of stripped string by splitting the string given as argument on `sep` (',' by default), empty strings are discarded. |
Function | _unquote |
Remove optional quotes (simple or double) from the string. |
PyLinter
, stream: TextIO
= sys.stdout, show_options: bool
= True):
(source)
¶
Output a full documentation in ReST format.
Return a list of stripped string by splitting the string given as argument on `sep` (',' by default), empty strings are discarded. >>> _splitstrip('a, b, c , 4,,') ['a', 'b', 'c', '4'] >>> _splitstrip('a') ['a'] >>> _splitstrip('a, b, c,') ['a', 'b', 'c'] :type string: str or unicode :param string: a csv line :type sep: str or unicode :param sep: field separator, default to the comma (',') :rtype: str or unicode :return: the unquoted string (or the input string if it wasn't quoted)
Remove optional quotes (simple or double) from the string. :param string: an optionally quoted string :return: the unquoted string (or the input string if it wasn't quoted)
BufferedReader|BytesIO
, encoding: str
, errors: Literal[ 'strict']
= 'strict') -> codecs.StreamReader
:
(source)
¶
Undocumented
TextIO
, section: str
, options: list[ tuple[ str, OptionDict, Any]]
, doc: str|None
= None):
(source)
¶
Format an option's section using the INI format.
BaseChecker
, option: GLOBAL_OPTION_BOOL
, default: bool|None
= ...) -> bool
:BaseChecker
, option: GLOBAL_OPTION_INT
, default: int|None
= ...) -> int
:BaseChecker
, option: GLOBAL_OPTION_LIST
, default: list[ str]|None
= ...) -> list[ str]
:BaseChecker
, option: GLOBAL_OPTION_PATTERN
, default: Pattern[ str]|None
= ...) -> Pattern[ str]
:BaseChecker
, option: GLOBAL_OPTION_PATTERN_LIST
, default: list[ Pattern[ str]]|None
= ...) -> list[ Pattern[ str]]
:BaseChecker
, option: GLOBAL_OPTION_TUPLE_INT
, default: tuple[ int, ...]|None
= ...) -> tuple[ int, ...]
:DEPRECATED: Retrieve an option defined by the given *checker* or by all known option providers. It will look in the list of all options providers until the given *option* will be found. If the option wasn't found, the *default* value will be returned.
str|None
, options: list[ tuple[ str, OptionDict, Any]]
, doc: str|None
= None) -> str
:
(source)
¶
Format an option's section using as a ReStructuredText formatted output.
str
, line_len: int
= DEFAULT_LINE_LENGTH, indent: str
= '') -> str
:
(source)
¶
Wrap the text on the given line length.