-
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: pre-commit, temporarily suppress clippy warnings
- Loading branch information
Showing
7 changed files
with
70 additions
and
2 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
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,31 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: fmt | ||
name: cargo fmt --check | ||
description: Check formatting of files with cargo fmt | ||
language: rust | ||
entry: cargo fmt --check -- | ||
files: \.rs$ | ||
args: [] | ||
- id: check | ||
name: cargo check | ||
description: Check package and dependencies for errors | ||
language: rust | ||
entry: cargo check | ||
files: \.rs$ | ||
pass_filenames: false | ||
- id: clippy | ||
name: cargo clippy | ||
description: Lint with Clippy | ||
language: rust | ||
entry: cargo clippy --all-features --tests --benches -- -Dclippy::all -Dclippy::pedantic | ||
files: \.rs$ | ||
pass_filenames: false | ||
- id: test | ||
name: cargo test | ||
description: Run unit tests | ||
language: rust | ||
entry: cargo test | ||
files: \.rs$ | ||
pass_filenames: false |
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 |
---|---|---|
@@ -1,2 +1,18 @@ | ||
# sdd-rs | ||
|
||
Bottom-up sentential decision diagram compiler. | ||
|
||
## Development | ||
|
||
Run all tests and linters with [pre-commit](https://pre-commit.com) before committing. | ||
|
||
```bash | ||
# Install pre-commit: https://pre-commit.com/#install | ||
brew install pre-commit | ||
|
||
# Set-up pre-commit | ||
pre-commit install | ||
|
||
# Run all hooks | ||
pre-commit run --all-files | ||
``` |
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
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