stylist.style

Classes relating to styles made up of rules.

Classes

Style(*rules)

Abstract parent of all style lists.

class stylist.style.Style(*rules)

Bases: ABC

Abstract parent of all style lists.

Parameters:

rules (Rule) – Rules which make up this style.

check(source)

Applies every rule in this style to a source code.

Parameters:

source (SourceTree) – Source code to inspect.

Return type:

List[Issue]

Returns:

All issues found in the source.

list_rules()

Gets a list of the rules which make up this style.

Return type:

List[Rule]