cli

Module containing the notebook gatherer and hack of flake8.

This is the main implementation of flake8_nb, it relies on overwriting flake8 ‘s CLI default options, searching and parsing *.ipynb files and injecting the parsed files, during the loading of the CLI argv and config of flake8.

Functions

Summary

get_notebooks_from_args

Extract the absolute paths to notebooks.

hack_config_module

Create hacked version of flake8.options.config at runtime.

hack_option_manager_generate_versions

Closure to prepend the flake8 version to option_manager.generate_versions .

Classes

Summary

Flake8NbApplication

Subclass of flake8.main.application.Application.