Tests will need to be re-run regardless in this case so it's better to fail and have the PR author fix linting issues than proceed to run the whole job.
It would be good to still run pre-commit in parallel so the total running time isn't impacted, just abort other tests (if possible).