Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Commit cd43c36

Browse files
committed
ci: Add commitizen integration (#134)
Uses PR'd fork with support for `post_bump_hooks` [1] [1]: commitizen-tools/commitizen#644
1 parent aabefac commit cd43c36

File tree

1 file changed

+27
-10
lines changed

1 file changed

+27
-10
lines changed

‎checks/pre-commit-check/default.nix‎

Lines changed: 27 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,27 @@
1-
{inputs}:
2-
inputs.shellHooks.lib.run {
3-
src = ../..;
4-
hooks = {
5-
alejandra.enable = true;
6-
rustfmt.enable = true;
7-
clippy.enable = true;
8-
};
9-
settings.clippy.denyWarnings = true;
10-
}
1+
{
2+
inputs,
3+
nixpkgs,
4+
lib,
5+
}: let
6+
# temporary, until https://github.com/commitizen-tools/commitizen/pull/644 is merged
7+
commitizen = nixpkgs.commitizen.overridePythonAttrs (_: {
8+
doCheck = false;
9+
src = builtins.fetchGit {
10+
url = "https://github.com/skoef/commitizen/";
11+
ref = "add-hooks-for-bump-command";
12+
rev = "d7c86c8244af0cb5be1ab2b3882d0af74a191352";
13+
};
14+
});
15+
in
16+
(inputs.shellHooks.lib.run {
17+
src = ../..;
18+
hooks = {
19+
alejandra.enable = true;
20+
rustfmt.enable = true;
21+
clippy.enable = true;
22+
commitizen.enable = true;
23+
};
24+
settings.clippy.denyWarnings = true;
25+
tools = {inherit commitizen;};
26+
})
27+
// {passthru.commitizen = commitizen;}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /