(
options: Options, flush_errors: Callable[[str | None, list[str], bool], None]
)
| 565 | |
| 566 | |
| 567 | def warn_unused_configs( |
| 568 | options: Options, flush_errors: Callable[[str | None, list[str], bool], None] |
| 569 | ) -> None: |
| 570 | unused_configs = options.get_unused_configs() |
| 571 | if options.warn_unused_configs and unused_configs and not options.non_interactive: |
| 572 | unused = get_config_module_names( |
| 573 | options.config_file, |
| 574 | [glob for glob in options.per_module_options.keys() if glob in unused_configs], |
| 575 | ) |
| 576 | flush_errors( |
| 577 | None, ["{}: note: unused section(s): {}".format(options.config_file, unused)], False |
| 578 | ) |
| 579 | |
| 580 | |
| 581 | def default_data_dir() -> str: |
no test coverage detected
searching dependent graphs…