Skip to content
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

Enable running slither as pre-commit hook #2521

Merged
merged 6 commits into from
Aug 26, 2024
Merged

Conversation

dbast
Copy link
Contributor

@dbast dbast commented Aug 2, 2024

pre-commit became pretty popular as framework to combine linters / code-formatters via hooks across different languages. It can be enabled as actual git hook or just used by running pre-commit run -a. pre-commit does its own dependency management and uses virtual envs for the Python hooks (= no need to put linters requirements*.txt files for Python projects)

This adds a .pre-commit-hooks.yaml, which allows other projects to run slither via pre-commit.

Tested it in my fork with custom test tag, see dbast/sol-press#10

@CLAassistant
Copy link

CLAassistant commented Aug 2, 2024

CLA assistant check
All committers have signed the CLA.

README.md Outdated Show resolved Hide resolved
dbast and others added 3 commits August 13, 2024 17:33
Co-authored-by: Emilio López <2642849+elopez@users.noreply.github.com>
@dbast
Copy link
Contributor Author

dbast commented Aug 26, 2024

the ci/test failures seem unrelated... anything else I can do for this PR from my side, like explaining things a bit more / add a test workflow?

@0xalpharush 0xalpharush merged commit 16fd330 into crytic:master Aug 26, 2024
68 of 72 checks passed
@0xalpharush
Copy link
Contributor

@dbast Thanks for adding this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants