Tests should not be run with pre-commit
pre-commit is mainly for running quick lints directly before commit. Things like running tests which can take a long time, should not be run with pre-commit.
If the issue is that pre-commit is being used as project automation, I suggest we adopt something like nox or invoke (assuming we want to stick with Python tools like pre-commit).