-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/atoma-network/atoma-node in…
…to feat/sev-snp-support
- Loading branch information
Showing
12 changed files
with
431 additions
and
252 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,14 @@ | ||
#!/bin/bash | ||
|
||
# Run cargo clippy with the specified lint settings | ||
echo "Running cargo clippy..." | ||
cargo clippy --all-targets -- -D warnings -W clippy::pedantic -W clippy::nursery -W clippy::style -W clippy::complexity -W clippy::perf -W clippy::suspicious -W clippy::correctness | ||
|
||
# Check if clippy succeeded | ||
if [ $? -ne 0 ]; then | ||
echo "Clippy found issues. Commit aborted." | ||
exit 1 | ||
fi | ||
|
||
echo "Clippy checks passed. Proceeding with commit." | ||
exit 0 |
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,9 @@ | ||
#!/bin/bash | ||
|
||
# Set the hooks directory | ||
git config core.hooksPath .githooks | ||
|
||
# Make the pre-commit hook executable | ||
chmod +x .githooks/pre-commit | ||
|
||
echo "Git hooks configured successfully." |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
target/ | ||
.vscode/ | ||
/models/ | ||
config.toml | ||
/config.toml | ||
cursor.toml | ||
|
||
.env | ||
|
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,22 @@ | ||
{ | ||
"rust-analyzer.check.command": "clippy", | ||
"rust-analyzer.check.extraArgs": [ | ||
"--", | ||
"-D", | ||
"warnings", | ||
"-W", | ||
"clippy::pedantic", | ||
"-W", | ||
"clippy::nursery", | ||
"-W", | ||
"clippy::style", | ||
"-W", | ||
"clippy::complexity", | ||
"-W", | ||
"clippy::perf", | ||
"-W", | ||
"clippy::suspicious", | ||
"-W", | ||
"clippy::correctness" | ||
] | ||
} |
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,16 @@ | ||
# Contributing guidelines | ||
|
||
👋 Contributions are welcome! | ||
|
||
Once you've tested your changes and verified that they work, you can commit your changes but please setup a git hook to run clippy on your changes. | ||
|
||
## Setting Up Git Hooks | ||
|
||
To enable the pre-commit hook, run the following command: | ||
|
||
```bash | ||
chmod +x ./.githooks/setup-hooks.sh | ||
./.githooks/setup-hooks.sh | ||
``` | ||
|
||
This script will configure the hooks directory and make the pre-commit hook executable. |
Oops, something went wrong.