mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-11 16:55:23 +00:00
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>
28 lines
889 B
YAML
28 lines
889 B
YAML
fail_fast: false
|
|
repos:
|
|
- repo: https://github.com/jorisroovers/gitlint
|
|
rev: v0.19.1
|
|
hooks:
|
|
- id: gitlint-ci
|
|
- repo: local
|
|
hooks:
|
|
# Use dotnet format installed on your machine
|
|
- id: dotnet-format
|
|
name: dotnet-format
|
|
language: system
|
|
files: ^subprojects/gstreamer-sharp/.*
|
|
entry: dotnet format subprojects/gstreamer-sharp/gstreamer-sharp.sln -v normal --include
|
|
types_or: ["c#", "vb"]
|
|
- id: gst-indent
|
|
name: gst-indent
|
|
language: python
|
|
entry: ./scripts/gst-indent-all.py
|
|
pass_filenames: false
|
|
types_or: ["c", "c++"]
|
|
# The rust hook uses cargo fmt, which requires a Cargo.toml
|
|
# We use a local hook to run rustfmt directly
|
|
- id: rustfmt
|
|
name: rustfmt
|
|
language: system
|
|
entry: rustfmt --verbose --edition 2021
|
|
types_or: ["rust"]
|