forked from nushell/nushell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add git hooks for formatting and running
clippy
(nushell#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>
- Loading branch information
1 parent
b9808c8
commit 4da7bbb
Showing
4 changed files
with
81 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env nu | ||
|
||
use ../toolkit.nu fmt | ||
|
||
fmt --check --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env nu | ||
|
||
use ../toolkit.nu [fmt, clippy] | ||
|
||
fmt --check --verbose | ||
clippy --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters