nitpick.flake8 module

Flake8 plugin to check files.

class nitpick.flake8.NitpickFlake8Extension(tree=None, filename='(none)')[source]

Bases: object

Main class for the flake8 extension.

Method generated by attrs for class NitpickFlake8Extension.

static add_options(option_manager: flake8.options.manager.OptionManager)[source]

Add the offline option.

build_flake8_error(obj: nitpick.violations.Fuss) Tuple[int, int, str, Type][source]

Return a flake8 error from a fuss.

collect_errors() Iterator[nitpick.violations.Fuss][source]

Collect all possible Nitpick errors.

name = 'nitpick'
static parse_options(option_manager: flake8.options.manager.OptionManager, options, args)[source]

Create the Nitpick app, set logging from the verbose flags, set offline mode.

This function is called only once by flake8, so it’s a good place to create the app.

run() Iterator[Tuple[int, int, str, Type]][source]

Run the check plugin.

version = '0.29.0'