hack_config_module

hack_config_module() None[source]

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

Since flake8>=5.0.0 uses hardcoded "flake8" to discover the config we replace with it with "flake8_nb" to create our own hacked version and replace the references to the original module with the hacked one.

See:

https://github.com/s-weigand/flake8-nb/issues/249 https://github.com/s-weigand/flake8-nb/issues/254