Commit graph

3 commits

Author SHA1 Message Date
Andoni Morales Alastruey
d0ab931628 pre-commit: install gst-indent through pip
Depends on: https://gitlab.freedesktop.org/gstreamer/gst-indent/-/merge_requests/13

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8402>
2025-02-05 17:43:57 +00:00
L. E. Segovia
2b5ab13f29 ci: pre-commit: Fix the gst-indent hook not implementing filtering criteria
There's a different way to list the files between the former pre-commit
hook (which ran gst-indent directly on the output of git diff-index)
and the former CI check job (which ran gst-indent-all wholesale).

It can be easily addressed by detecting CI_PROJECT_NAME at listing time.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8409>
2025-02-05 09:57:50 +00:00
Andoni Morales Alastruey
3213e641ec hooks: use pre-commit to run all hooks
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>
2025-01-31 19:15:25 -03:00