nushell/.githooks/pre-commit
Maria José Solano 4da7bbbb59
Add git hooks for formatting and running clippy (#8820)
# Description

As another life improvement (and to avoid those `run cargo fmt` commits
😉), this PR adds a command to the toolkit for formatting and running
`clippy` when committing and pushing.

Thanks to @amtoine for the idea!

---------

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2023-04-13 07:34:23 -05:00

5 lines
No EOL
63 B
Text
Executable file

#!/usr/bin/env nu
use ../toolkit.nu fmt
fmt --check --verbose