pyglint package

Module contents

Concise checker definition for Pylint.

class pyglint.CheckerGroup(name, checkers=NOTHING, problems=NOTHING, id_prefix='E')[source]

Bases: object

The main object for defining linters with Pyglint.


Check for one or more pre-defined Problem s.

Parameters:node_type (Type[NodeNG]) – The checker will be invoked with each instance of the given node type that pylint finds.
problem(name, text, explanation)[source]

Define a reusable Problem.

Return type:BaseChecker
pyglint.message(node, problem=None, line=None, col_offset=None, confidence=Confidence(name='UNDEFINED', description='Warning without any associated confidence level.'), **data)[source]
Return type:Message