Skip to content

Commit

Permalink
fix(flake): come back to teh basics with commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
airone01 committed Nov 10, 2024
1 parent c859a2c commit 5507e56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .commitlintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ rules:
- - lower-case # subject must start with lower case

subject-empty:
level: error
- 2
- never # subject cannot be empty

subject-full-stop:
- 2
Expand Down
2 changes: 1 addition & 1 deletion .githooks/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
MSG_FILE=$1

# Run commitlint using nix develop
nix develop .#commitlint --command commitlint -g .commitlintrc.yml -e
nix develop .#commitlint --command commitlint --edit $MSG_FILE
2 changes: 1 addition & 1 deletion rockets/commitlint.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
pkgs = nixpkgs.legacyPackages.${system};

packages = with pkgs; [
commitlint-rs
commitlint
];
in
pkgs.mkShell {
Expand Down

0 comments on commit 5507e56

Please sign in to comment.