fix(devshell): install pre-commit hook and enable rustfmt #22

Merged
bahrom04 merged 2 commits from zeta/e-imzo-manager:main into main 2026-08-28 09:25:31 +00:00
Contributor

Fixed two issues with formatting/hooks:

Running nix develop never installed the pre-commit hook, because the custom devShell wasn't calling the install script that xinux-lib provides.
Rust files weren't covered by the formatter — added rustfmt to the config.

Both are fixed in shells/e-imzo-manager/default.nix.

Fixed two issues with formatting/hooks: Running nix develop never installed the pre-commit hook, because the custom devShell wasn't calling the install script that xinux-lib provides. Rust files weren't covered by the formatter — added rustfmt to the config. Both are fixed in shells/e-imzo-manager/default.nix.
fix(devshell): install pre-commit hook and enable rustfmt
All checks were successful
Test CI / flake-check (pull_request) Successful in 50s
Test CI / nix-build (pull_request) Successful in 5m52s
13eced3371
xfeusw 2026-08-26 06:52:10 +00:00
Owner

because the custom devShell wasn't calling the install script that xinux-lib provides.

I cannot recall that xinux-lib provides install script?

`because the custom devShell wasn't calling the install script that xinux-lib provides.` I cannot recall that xinux-lib provides install script?
bahrom04 requested changes 2026-08-26 12:55:46 +00:00
Dismissed
.gitignore Outdated
@ -19,3 +19,3 @@
*po~
.cargo
.cargo.pre-commit-config.yaml
Owner

move .pre-commit-config.yaml one line below, just pressing enter :}

move `.pre-commit-config.yaml` one line below, just pressing enter :}
Author
Contributor

I cannot recall that xinux-lib provides install script? - I checked xinux-lib. That install script (config.pre-commit.installationScript) is only used in xinux-lib's own dev shell, via flake-parts. It's not passed down through create-shells/channels, which is what per-repo shells like this one actually use — so there's currently no shared version to hook into.

This PR sets up treefmtEval/preCommitCheck locally instead, following the same pattern xinux-lib's own shell.nix uses. want me to make this available to all repos through xinux-lib later, if that'd help or later?

I cannot recall that xinux-lib provides install script? - I checked xinux-lib. That install script (config.pre-commit.installationScript) is only used in xinux-lib's own dev shell, via flake-parts. It's not passed down through create-shells/channels, which is what per-repo shells like this one actually use — so there's currently no shared version to hook into. This PR sets up treefmtEval/preCommitCheck locally instead, following the same pattern xinux-lib's own shell.nix uses. want me to make this available to all repos through xinux-lib later, if that'd help or later?
Owner

currently itʻs ok to have each repoʼs own treefmt config

currently itʻs ok to have each repoʼs own treefmt config
zeta marked this conversation as resolved
fix: split merged .gitignore entries
All checks were successful
Test CI / flake-check (pull_request) Successful in 46s
Test CI / nix-build (pull_request) Successful in 5m30s
c0143eff70
bahrom04 approved these changes 2026-08-28 09:25:21 +00:00
Sign in to join this conversation.
No description provided.