Pylint [options] modules_or_packages. Check that module(s) satisfy a coding standard (and more !). pylint --help Display this help message and exit. pylint --help-msg <msg-id>[,<msg-id>] Display help messages about given message identifiers and exit.
Module | base |
Functions that creates the basic options for the Run and PyLinter classes. |
Module | caching |
Undocumented |
Module | expand |
No module docstring; 2/5 functions documented |
Module | message |
No module docstring; 1/1 class documented |
Module | parallel |
No module docstring; 0/1 variable, 2/3 functions documented |
Module | pylinter |
Undocumented |
Module | report |
Undocumented |
Module | run |
No module docstring; 0/1 constant, 2/2 functions, 1/1 class documented |
Module | utils |
No module docstring; 1/3 function documented |
From __init__.py
:
Class |
|
Lint Python modules using external checkers. |
Class |
|
Helper class to use as main for pylint with 'run(*sys.argv[1:])'. |
Exception |
|
Raised if an error occurs during argument pre-processing. |
Function | augmented |
Augment 'sys.path' by adding non-existent entries from additional_paths. |
Function | check |
Use the given linter to lint the files with given amount of workers (jobs). |
Function | discover |
Discover package path from one its modules and source roots. |
Function | fix |
Prepare 'sys.path' for running the linter checks. |
Function | load |
Undocumented |
Function | report |
Make errors / warnings by modules report. |
Function | report |
Make messages type report. |
Function | report |
Make total errors / warnings report. |
Function | save |
Undocumented |
Function | _augment |
Undocumented |
Function | _patch |
Undocumented |
str|Path
, pylint_home: str|Path
= PYLINT_HOME) -> LinterStats|None
:
(source)
¶
Undocumented
LinterStats
, base: str|Path
, pylint_home: str|Path
= PYLINT_HOME):
(source)
¶
Undocumented
PyLinter
, jobs: int
, files: Iterable[ FileItem]
, extra_packages_paths: Sequence[ str]|None
= None):
(source)
¶
Use the given linter to lint the files with given amount of workers (jobs). This splits the work filestream-by-filestream. If you need to do work across multiple files, as in the similarity-checker, then implement the map/reduce mixin functionality.
Section
, stats: LinterStats
, _: LinterStats|None
):
(source)
¶
Make errors / warnings by modules report.
Section
, stats: LinterStats
, previous_stats: LinterStats|None
):
(source)
¶
Make total errors / warnings report.
def augmented_sys_path(additional_paths:
Sequence[ str]
) -> Iterator[ None]
:
(source)
¶
Augment 'sys.path' by adding non-existent entries from additional_paths.
Prepare 'sys.path' for running the linter checks. Within this context, each of the given arguments is importable. Paths are added to 'sys.path' in corresponding order to the arguments. We avoid adding duplicate directories to sys.path. `sys.path` is reset to its original value upon exiting this context.