(
settings: BaseSettings, inproject: bool
)
| 74 | |
| 75 | |
| 76 | def _get_commands_dict( |
| 77 | settings: BaseSettings, inproject: bool |
| 78 | ) -> dict[str, ScrapyCommand]: |
| 79 | cmds = _get_commands_from_module("scrapy.commands", inproject) |
| 80 | cmds.update(_get_commands_from_entry_points(inproject)) |
| 81 | cmds_module = settings["COMMANDS_MODULE"] |
| 82 | if cmds_module: |
| 83 | cmds.update(_get_commands_from_module(cmds_module, inproject)) |
| 84 | return cmds |
| 85 | |
| 86 | |
| 87 | def _get_project_only_cmds(settings: BaseSettings) -> set[str]: |
no test coverage detected