The ``pytest_report_collectionfinish`` hook now is also called with ``--collect-only``.