CI: move mypy check to pre-commit
this was moved out some time ago - mypy behaves differently within pre-commit, and frequently needed skipping on individual commits. Futhermore, it wouldn't have access to numpy / pytest types if running like that in an isolated environment