flakeheaven.commands._config¶
- flakeheaven.commands._config._inject_flake8_defaults(parser: argparse.ArgumentParser) None [source]¶
Inject some flake8 defaults.
Defaults taken from flake8.main.options:register_preliminary_options.
- Parameters
parser – The parser to inject defaults into.
- Returns
Mapping of option names to actions.
- flakeheaven.commands._config._maybe_backup_old_log(local_args: argparse.Namespace) Tuple[Optional[str], pathlib.Path] [source]¶
- flakeheaven.commands._config._parse(sys_argv) Tuple[argparse.Namespace, List[str], Optional[str], pathlib.Path] [source]¶
- flakeheaven.commands._config.config_command(argv) Tuple[Union[int, flakeheaven._constants.ExitCode], str] [source]¶
Show flake8 configuration after flakeheaven consolidation.