testing/pre-commit: upgrade to 3.1.0
https://github.com/pre-commit/pre-commit/releases/tag/v3.1.0
This patch also disables language-specific tests; there are a lot of tests which we can't reasonably run (due to missing deps, needing docker, etc.) and it doesn't seem worth the maintenance effort and build time to run them.