diff --git a/scrapy/commands/check.py b/scrapy/commands/check.py index caba958c28f..c23d11dc317 100644 --- a/scrapy/commands/check.py +++ b/scrapy/commands/check.py @@ -77,7 +77,9 @@ def run(self, args: list[str], opts: argparse.Namespace) -> None: spider_loader = self.crawler_process.spider_loader with set_environ(SCRAPY_CHECK="true"): - contract_reqs = self._collect_contract_requests(args, spider_loader, conman, result, opts) + contract_reqs = self._collect_contract_requests( + args, spider_loader, conman, result, opts + ) if opts.list: self._list_contract_methods(contract_reqs, opts.verbose)