-
-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add devbox and pre-commit hook (#637)
To further improve developer experience, this PR adds the following: - devbox for a common development environment - pre-commit hooks for formatting
- Loading branch information
Showing
5 changed files
with
533 additions
and
0 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,2 @@ | ||
devbox.lock binary linguist-generated=true eol=lf | ||
|
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,7 @@ | ||
repos: | ||
- repo: https://github.com/doublify/pre-commit-rust | ||
rev: v1.0 | ||
hooks: | ||
- id: fmt | ||
- id: cargo-check | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/0.10.7/.schema/devbox.schema.json", | ||
"packages": { | ||
"git": "latest", | ||
"pre-commit": "latest", | ||
"rustup": "latest", | ||
"libiconv": "latest", | ||
"darwin.apple_sdk.frameworks.SystemConfiguration": { | ||
"platforms": ["x86_64-darwin", "aarch64-darwin"], | ||
}, | ||
"darwin.apple_sdk.frameworks.Security": { | ||
"platforms": ["x86_64-darwin", "aarch64-darwin"], | ||
}, | ||
"darwin.apple_sdk.frameworks.CoreServices": { | ||
"platforms": ["x86_64-darwin", "aarch64-darwin"], | ||
}, | ||
"vim": "latest", | ||
"less": "latest", | ||
"openssh": "latest", | ||
}, | ||
"shell": { | ||
"init_hook": [ | ||
"pre-commit install", | ||
"if [ ! -d $RUSTUP_HOME/toolchains/stable* ]; then rustup default stable; fi", | ||
], | ||
"scripts": { | ||
"test": [ | ||
"cargo test", | ||
], | ||
"build": [ | ||
"cargo build", | ||
], | ||
"fmt": [ | ||
"cargo fmt", | ||
], | ||
}, | ||
}, | ||
"env": { | ||
"LS_COLORS": "di=33", | ||
}, | ||
} |
Oops, something went wrong.