-
-
Notifications
You must be signed in to change notification settings - Fork 654
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 hooks #16983
Update Pre-Commit hooks #16983
Conversation
WalkthroughThe recent updates to the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Pre-commit
participant Codebase
User->>Pre-commit: Initiates pre-commit hook checks
Pre-commit->>Codebase: Runs new checks (e.g., debug-statements, check-yaml)
Codebase-->>Pre-commit: Provides validation results
Pre-commit-->>User: Displays report on code quality and style
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Co-authored-by: Luke Davis <[email protected]>
…m debug statements check
test.txt
Outdated
@@ -0,0 +1 @@ | |||
Test link: https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/check_vcs_permalinks.py |
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.
please remove this file
Link to issue number:
None
Summary of the issue:
Continuing work on our pre-commit hooks, there are still several we don't use but could.
Description of user facing changes
None.
Description of development approach
Tested pre-commit hooks available at https://github.com/pre-commit/pre-commit-hooks/. Added those that work as expected and do not require major changes to our code base. Added:
Testing strategy:
Ran the tests individually with
pre-commit run <hook-id> -a
and all together withpre-commit run -a
.Known issues with pull request:
The following are good candidates for inclusion:
Code Review Checklist:
Summary by CodeRabbit
New Features
Improvements