Skip to content
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 to use black 23.1.0 #1791

Merged
merged 1 commit into from Feb 22, 2023
Merged

Conversation

andreaskoepf
Copy link
Collaborator

@andreaskoepf andreaskoepf commented Feb 22, 2023

Today we ran into an interesting pre-commit loop:

  • pre-commit run --files oasst-shared/oasst_shared/schemas/inference.py said everything OK
  • pre-commit run -a wanted to re-format the file, but after adding the file pre-commit changed it's mind and wanted the old format

In the hope to fix this I updated to black 23.1.0. The new black version wants to remove a couple of empty lines and parantheses.

Copy link
Collaborator

@yk yk left a comment

Choose a reason for hiding this comment

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

this is gonna create some sweet merge conflicts :D

@andreaskoepf andreaskoepf merged commit 3760f78 into main Feb 22, 2023
@andreaskoepf andreaskoepf deleted the update_to_black_23.1.0 branch February 22, 2023 08:59
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.

None yet

4 participants