Skip to content

Conversation

aaishwarymishra
Copy link
Contributor

This will check for sensitive data and linting problems before commit .
fix #4029

hooks:
- id: gitleaks

- repo: https://github.com/jumanjihouse/pre-commit-hooks
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we usually do not have shell scripts in our PRs. Is it really relevant to us?

rev: v1.3.5
hooks:
- id: cpplint
- repo: https://github.com/pylint-dev/pylint
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we use black for py linting.

- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: cpplint
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these checks are running locally, to my knowledge, not on github. Have you tried running them on our codebase?

@aaishwarymishra
Copy link
Contributor Author

fair enough I will remove them.
And just leave gitleaks for secret checks .

Signed-off-by: BLANKatGITHUB <[email protected]>
Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@romange romange merged commit 121a01f into dragonflydb:main Nov 2, 2024
9 checks passed
@romange romange changed the title feat(pre-commit): adds senstive data check like api keys and linting … feat(pre-commit): adds senstive data check like api keys Nov 2, 2024
@aaishwarymishra aaishwarymishra deleted the pre-comit branch November 2, 2024 13:56
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.

Add Sensitive Data Check And Linting Check
2 participants