stylist.style
Classes relating to styles made up of rules.
Functions
|
Builds a style from those defined in the configuration. |
Classes
|
Abstract parent of all style lists. |
- class stylist.style.Style(rules)
Bases:
object
Abstract parent of all style lists.
- 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.
- stylist.style.determine_style(configuration, style_name=None)
Builds a style from those defined in the configuration.
- Parameters
configuration (
Configuration
) – Tool configuration.style_name (
Optional
[str
]) – If not specified the first style defined in the configuration is used.
- Return type
- Returns
Selected style.