-
Notifications
You must be signed in to change notification settings - Fork 395
pre-commit: run all pre-commit autoformatting hooks, add one for ci/check-embedded-chart-code.py script as well and run it #1465
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
Conversation
0ae262c
to
541c9bb
Compare
+1 from me, only comment is that maybe we should use isort instead, since @minrk liked that one for the jupyterhub repo? |
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.
I think isort can come in a follow-up PR, especially given that this represents the current agreed auto-formatting, and it's taken 6+ months to get here 😃
@choldgraf If you're happy with that plan please hit merge!
sure I don't have strong opinions, just feel like if we're going to go with an autoformatter standard, we should at least standardize on the autoformatter we use haha. These PRs tend to be somewhat disruptive since they often invalidate other open PRs, so it might not be trivial to just do a follow-up PR. This is why I thought it might be worth quickly agreeing on something if it was going to be quick. But if you think this will require more conversation then I agree we should just merge this. @consideRatio what do you think? |
+1 to merge, with or without isort. There aren't so many files here so the difference should be small. If you do add isort, you need to add
to pyproject.toml for isort to play nice with black. |
541c9bb
to
4be7f2e
Compare
Reviewed the blame output with the ignore-refs config. Pretty cool! |
Ping @manics @minrk @choldgraf sorry for the noise but I'd love to see this merged so I can take this off my radar.
|
jupyterhub/binderhub#1465 Merge pull request #1465 from consideRatio/pr/pre-commit-run
Yesssss Erik you're awesome 😎 |
This is a followup, running the autoformatting hooks defined in .pre-commit-config which was introduced in #1381.
It also includes a .git-blame-ignore-revs file with inline comments of what that is about as suggested by @manics:
I ran into a failure because the values.yaml duplicated code had been outdated. So instead of re-running it manually I decided to add a pre-commit hook to do it for us which I think should work for pre-commit.ci as well.