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

Upgrade celery, Black #286

Merged
merged 4 commits into from
Apr 21, 2024
Merged

Upgrade celery, Black #286

merged 4 commits into from
Apr 21, 2024

Conversation

vcai122
Copy link
Contributor

@vcai122 vcai122 commented Apr 19, 2024

Upgrade black to upgrade celery. Also got really annoyed by the dependency stuff depending on old click figured it was prolly time anyway.
Minimal changes to actual files (mostly migration file)
We can set up later something to ignore blame on this commit

https://www.stefanjudis.com/today-i-learned/how-to-exclude-commits-from-git-blame/

model_name="venue", name="name", field=models.CharField(max_length=255, null=True),
model_name="venue",
name="name",
field=models.CharField(max_length=255, null=True),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new black splits into lines if we have trailing commas, otherwise tries to one line.
old black tried to one line and added trailing commas.

To make things look similar for most files where we had one line previously I deleted the trailing comma and reformatted but I ignored for migration files.

Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.66%. Comparing base (7b60314) to head (bf4fb61).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #286   +/-   ##
=======================================
  Coverage   90.66%   90.66%           
=======================================
  Files          61       61           
  Lines        2604     2604           
=======================================
  Hits         2361     2361           
  Misses        243      243           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@judtinzhang judtinzhang left a comment

Choose a reason for hiding this comment

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

One comment. Also after this is merged in we should remind everyone to update their environment

backend/Pipfile Outdated
@@ -4,7 +4,7 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "==19.10b0"
black = "*"
Copy link
Member

Choose a reason for hiding this comment

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

can we fix the black version here?

@vcai122 vcai122 merged commit e7d0dc7 into master Apr 21, 2024
9 checks passed
@vcai122 vcai122 deleted the upgrade-black branch April 21, 2024 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants