-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tiago Castro <[email protected]>
- Loading branch information
1 parent
cb9bb0c
commit c443473
Showing
4 changed files
with
52 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
/.vagrant | ||
.idea | ||
.pregenerated | ||
/Cargo.lock |
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,33 @@ | ||
repos: | ||
- repo: https://github.com/nix-community/nixpkgs-fmt | ||
rev: v1.2.0 | ||
hooks: | ||
- id: nixpkgs-fmt | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
hooks: | ||
- id: trailing-whitespace | ||
exclude_types: [diff] | ||
- repo: local | ||
hooks: | ||
- id: rust-style | ||
name: Rust style | ||
description: Check Rust code style on files included in the commit. | ||
entry: ./scripts/rust-style.sh | ||
pass_filenames: false | ||
types: [file, rust] | ||
language: system | ||
- id: rust-lint | ||
name: Rust lint | ||
description: Run Rust linter on files included in the commit. | ||
entry: ./scripts/rust-linter.sh | ||
pass_filenames: false | ||
types: [file, rust] | ||
language: system | ||
- id: commit-lint | ||
name: Commit Lint | ||
description: Runs commitlint against the commit message. | ||
language: system | ||
entry: bash -c 'nix-shell --pure --run "cat $1 | grep -v '^#' | commitlint"' | ||
args: [$1] | ||
stages: [commit-msg] |
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,15 @@ | ||
# changed from 100 to 80 | ||
max_width = 80 | ||
# default is false | ||
wrap_comments = true | ||
comment_width = 80 | ||
# was true | ||
struct_lit_single_line = false | ||
#changed from Mixed | ||
imports_layout = "HorizontalVertical" | ||
# changed from Preserve (merge_imports = false) | ||
imports_granularity="Crate" | ||
#default false | ||
spaces_around_ranges = true | ||
# was 2015 | ||
edition = "2018" |
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