From 06f17a5c78c33120afd71a94f907bfdabd5c40aa Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Sun, 7 Apr 2024 20:05:19 -0700 Subject: release-notes: check with pre-commit This required making the build-release-notes script understand how to check multiple directories. Change-Id: I057f5f636155ab6c6fb5755da5217b7e72249ece --- flake.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index b8a5da33f..56dd4bfc3 100644 --- a/flake.nix +++ b/flake.nix @@ -344,6 +344,15 @@ enable = true; excludes = [ "^tests/functional/lang/" ]; }; + release-notes = { + enable = true; + package = pkgs.build-release-notes; + files = "^doc/manual/rl-next(-dev)?"; + pass_filenames = false; + entry = '' + ${lib.getExe pkgs.build-release-notes} doc/manual/rl-next doc/manual/rl-next-dev + ''; + }; # TODO: Once the test suite is nicer, clean up and start # enforcing trailing whitespace on tests that don't explicitly # check for it. -- cgit v1.2.3