-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update pre-commit #919
Update pre-commit #919
Conversation
- separate pre-commit and pre-push - fix lint issues in grafana
01cdab5
to
b4f2846
Compare
.githooks/RPC-URLs-pre-commit
Outdated
fi | ||
done | ||
|
||
echo -e "\n\e[37m*** No RPC URLs were found in files! ***\e[0m\n\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't have to deal with it now, but I don't think these are necessary. It seems like pre-commit doesn't bother to show any output unless you exit with a non-zero code (even then I've found that to be oddly funky)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call out, makes the scripts a bit more clean if we get rid of these.
also add tidy check
4a48a9d
to
8bfa309
Compare
8b1dcc0
to
1f69e1e
Compare
1f69e1e
to
6552159
Compare
6552159
to
0699faf
Compare
Quality Gate passedIssues Measures |
Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.
Why
The changes introduce additional pre-commit hooks for Ethereum keys, RPC URLs, Go mod local replaces, linting Go files, and a pre-push hook for running unit tests. They aim to enhance code quality and security by automating checks for sensitive keys, invalid URLs, local module replacements, and linting issues. Additionally, updating the
golangci-lint
version and adding shellcheck directives in shell scripts improve the development environment's consistency and compliance with best practices.What
golangci-lint
hook and replaced it with custom hooks.golangci-lint
from version 1.57.1 to 1.57.2.