[ci][check] use available python to install pre-commit

2 jobs for ci-checks in 15 minutes and 6 seconds (queued for 8 seconds)
Status Name Job ID Coverage
  Build
passed build_linux #226947
docker

00:09:55

passed build_macos_intel #226948
macos intel

00:15:05