Migrate all the pre-commit and commit-msg hooks to use pre-commit (https://pre-commit.com/) Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192>
Since it contains bashisms. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5091>
macOS doesn't, for instance. Use a shell script to detect which python to run, which is always available on all OSes due to how git is packaged on Windows. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5060>