Skip to content

added pre-commit for end-of-file-fixer and trailing-whitespace #618

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

Merged
merged 4 commits into from
Apr 16, 2025

Conversation

garethahealy
Copy link
Contributor

@garethahealy garethahealy commented Feb 13, 2025

enables below checks and added a github action to run checks

  • end-of-file-fixer
  • trailing-whitespace

cc: @redhat-cop/day-in-the-life

@garethahealy garethahealy force-pushed the precommit-lineend branch 3 times, most recently from f7c68e5 to 7a42e23 Compare April 15, 2025 13:42
@garethahealy garethahealy changed the title WIP: added pre-commit for end-of-file-fixer and trailing-whitespace added pre-commit for end-of-file-fixer and trailing-whitespace Apr 15, 2025
@garethahealy
Copy link
Contributor Author

the failing test update-clusterversion looks like it's never worked (#535) and never will because it's an OCP resource, so wont work on kind

@itewk
Copy link
Contributor

itewk commented Apr 15, 2025

@redhat-cop/day-in-the-life i feel like this should be reviewed by more then just me...

@garethahealy
Copy link
Contributor Author

@ckavili @eformat you ok to review/merge based on above comment

@itewk
Copy link
Contributor

itewk commented Apr 15, 2025

@garethahealy i am trying to figure out why install test isn't passing. i have seen sometimes it just starts timing out. but then like late at night it doesnt.

the lint test though....

@garethahealy
Copy link
Contributor Author

see this comment #618 (comment) - update-clusterversion needs excluding via https://github.com/redhat-cop/helm-charts/blob/main/_test/ct-config.yaml

@garethahealy garethahealy force-pushed the precommit-lineend branch 2 times, most recently from bc43945 to 080be00 Compare April 15, 2025 18:06
@ckavili
Copy link
Contributor

ckavili commented Apr 15, 2025

wow such changes 🙈 LGTM 🚀 thanks Gareth!

@itewk
Copy link
Contributor

itewk commented Apr 15, 2025

see this comment #618 (comment) - update-clusterversion needs excluding via https://github.com/redhat-cop/helm-charts/blob/main/_test/ct-config.yaml

aaah. okay.

Mind opening another PR for that, we can merge that quick, and then rebase and merge this?

@garethahealy
Copy link
Contributor Author

see this comment #618 (comment) - update-clusterversion needs excluding via https://github.com/redhat-cop/helm-charts/blob/main/_test/ct-config.yaml

aaah. okay.

Mind opening another PR for that, we can merge that quick, and then rebase and merge this?

#638

@itewk
Copy link
Contributor

itewk commented Apr 15, 2025

@garethahealy cam you rebase now so we can get the clean run?

@garethahealy
Copy link
Contributor Author

@garethahealy cam you rebase now so we can get the clean run?

already done

@ckavili
Copy link
Contributor

ckavili commented Apr 16, 2025

I am merging it then if there is no objection? 🦭 👯‍♂️

@ckavili ckavili merged commit da22e7c into main Apr 16, 2025
8 checks passed
@ckavili ckavili deleted the precommit-lineend branch April 16, 2025 08:38
@itewk
Copy link
Contributor

itewk commented Apr 16, 2025

@garethahealy @ckavili thanks!

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.

3 participants