Add pre-commit image
As noted in https://gitlab.developers.cam.ac.uk/uis/devops/laboratory-allocator/lab-allocator/-/blob/df091145f9e7d77ccb0ebd91b5671afe704a20ec/.gitlab-ci.yml#L27, add a new image which installs pre-commit and associated dependencies.