11 Commits

Author SHA1 Message Date
Kévin Commaille
e9b4ffa5b0 ci: Check Rust dependencies with cargo-deny 2025-02-10 12:12:56 +00:00
Guillaume Girol
7ce6d404e8 hooks: do not assume location of bash
On NixOS (and BSD) bash is not at /bin/bash.
Change the shebang to use bash from PATH.
2024-12-23 12:00:00 +00:00
Alexandre Franke
091b55fc8a hook: check for unused deps with machete 2024-09-28 08:53:01 +00:00
Kévin Commaille
b6c719e920
ci: Move scripts/checks.sh to hooks
Avoids having 2 folders with a single file in it.
2024-04-05 17:34:36 +02:00
Kévin Commaille
cafc56e14a
hooks: Skip checks when missing a dependency in a non-interactive shell. 2022-10-28 21:18:39 +02:00
Jaap Schouwenburg
8773fafff9 hooks: Fix shebang on pre-commit hook
The pre-commit hook uses features that are not defined in the POSIX
shell. Fix the shebang so that it is correctly identified as a bash
script.

Part-of: <https://gitlab.gnome.org/GNOME/fractal/-/merge_requests/1111>
2022-07-05 08:37:12 +00:00
Julian Sparber
61dedcb7be scripts: Run checks only on staged files
Fixes: https://gitlab.gnome.org/GNOME/fractal/-/issues/935
2022-05-19 10:56:46 +00:00
Kévin Commaille
627553d415
pre-commit: Prettify output 2022-01-19 23:33:39 +01:00
Kévin Commaille
a53b20bfab
pre-commit: Export logic to separate script 2022-01-19 23:33:38 +01:00
Giuseppe De Palma
19f9a911d8 Remove bashism from git pre-commit hook 2021-06-22 07:03:29 +00:00
Alejandro Domínguez
49dab8eeaa Init with GTK Rust Template 2021-02-04 20:46:36 +01:00