hooks: Add codespell

Co-authored-by: Lorenz Leutgeb <lorenz.leutgeb@radicle.xyz>
This commit is contained in:
Yaroslav Halchenko 2025-10-25 11:19:08 +02:00 committed by Lorenz Leutgeb
parent 8e331ce182
commit f7e57361dc
2 changed files with 9 additions and 0 deletions

4
.codespellrc Normal file
View File

@ -0,0 +1,4 @@
[codespell]
skip = .git*,*.lock,.codespellrc
check-hidden = true
ignore-words-list = ser,noes

View File

@ -224,6 +224,11 @@
hooks = hooks =
{ {
alejandra.enable = true; alejandra.enable = true;
codespell = {
enable = true;
entry = "${lib.getExe pkgs.codespell} -w";
types = ["text"];
};
rustfmt = { rustfmt = {
enable = true; enable = true;
fail_fast = true; fail_fast = true;