flake/hooks: Reconfigure Git Hooks
- Introduce a new hook to run
cargo docin the “pre-commit” phase. We have to resort to wrapping the command in a shell script, since we cannot configure environment variables via.pre-commit.yamlbut needRUSTDOCFLAGSso thatcargo docactually exists non-zero when there are warnings. - Move
cargo checkfrom the “pre-push” to the “pre-commit” phase, as it is relatively quick, and redundant to run beforeclippy. - Let
cargo checkandcargo docrun afterrustfmt. - Let a failure of
rustfmtfail the whole check. - Wire through
packageOverridestorustfmtso we use the same toolchain as the other tools. - Additionally enable
cargo clippyto consider all features.
1 file changed
+34
-6
7d2f0e38
→
d7aa2d9d
modified flake.nix
@@ -173,17 +173,45 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|