about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-11-15 19:01:47 -0800
committerFranck Cuny <franck@fcuny.net>2022-11-15 19:02:52 -0800
commitf36c1fc13413bdd6c7105ba7f72e42f77c82efd6 (patch)
tree972d70dfd89d0244346928f32c436794e3987855
parentfix(modules/gitea): next time I'll learn to read the documentation (diff)
downloadworld-f36c1fc13413bdd6c7105ba7f72e42f77c82efd6.tar.gz
fix(flake): add extra argument for the `check-yaml' hook
Drone's CI configuration is in YAML and can contain multiple
configurations (documents). By default the check does not allow this, so
let's update the configuration by adding the flag
`--allow-multiple-documents`.
Diffstat (limited to '')
-rw-r--r--flake.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index 235eca4..51ab48e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -117,7 +117,7 @@
 
               check-yaml = {
                 enable = true;
-                entry = "${pkgs.python3Packages.pre-commit-hooks}/bin/check-yaml";
+                entry = "${pkgs.python3Packages.pre-commit-hooks}/bin/check-yaml --allow-multiple-documents";
                 types = [ "yaml" ];
               };