nitpick.mixin module

Mixin to raise flake8 errors.

class nitpick.mixin.NitpickMixin[source]

Bases: object

Mixin to raise flake8 errors.

error_base_number: int = 0
error_prefix: str = ''
flake8_error(number: int, message: str, suggestion: str = None, add_to_base_number=True) → Tuple[int, int, str, Type][source]

Return a flake8 error as a tuple.

warn_missing_different(comparison: nitpick.formats.Comparison, prefix_message: str = '')[source]

Warn about missing and different keys.