-
Notifications
You must be signed in to change notification settings - Fork 32
CLOUDP-301527 - add precommit and apply #642
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
base: master
Are you sure you want to change the base?
Conversation
d3ddcb8 to
53ed895
Compare
This branch contains only the core implementation files for review. The full PR (#642) includes additional auto-formatted files. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This branch contains only the core implementation files for review. The full PR (#642) includes additional auto-formatted files.
922b4cd to
c3113c3
Compare
MCK 1.6.2 Release Notes |
| @@ -0,0 +1,213 @@ | |||
| #!/usr/bin/env bash | |||
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.
thyis is mostly cp and paste from pre-commit
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.
in later pr i plan to enable newlines and trailing whitespace fixer, but then we will need to ensure that all generated files follow this - otherwise, pre-commit will fail if pre-commit needs to fix it
scripts/dev/generate_files.sh
Outdated
| source scripts/dev/set_env_context.sh | ||
| source scripts/funcs/printing | ||
|
|
||
| # Strip trailing whitespace from files to ensure clean generation output |
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.
if we don't do this, then we generate and then pre-commit runs and fixes them and then it fails as it changed something
f4fde10 to
1c4f4be
Compare
224f8a2 to
d68a102
Compare
be1c93a to
0b8d1f6
Compare
…framework - Add .pre-commit-config.yaml with hooks for golangci-lint, shellcheck, black, isort, etc. - Add generate_files.sh and regenerate_multicluster_rbac.sh scripts - Update Makefile, pyproject.toml, requirements.txt for pre-commit integration - Update evergreen scripts for pre-commit checks - Run pre-commit generation jobs in parallel
- Auto-format Python files with black and isort - Apply shellcheck fixes to shell scripts
|
There is an existing patch(es) for this commit SHA: Please note that the status that is posted is not in the context of this PR but rather the (latest) existing patch and that may affect some tests that may depend on the particular PR. If your tests do not rely on any PR-specific values (like base or head branch name) then your tests will report the same status. If you would like a patch to run in the context of this PR and abort the other(s), comment 'evergreen retry'. |
|
|
||
| default_stages: [pre-commit] | ||
|
|
||
| repos: |
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.
this is mostly suggested and generated by llms
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v5.0.0 | ||
| hooks: | ||
| # TODO: Enable these hooks in a follow-up PR - they modify 200+ files |
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.
commented them out for alter prs, the same for yamllinter
Summary
core changes (out of all files): can be seen in the first commit, all the subsequent commits are fixing those
Next
Proof of Work
Checklist
skip-changeloglabel if not needed