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

chore: Use ruff formatter #18207

Merged
merged 12 commits into from
Oct 31, 2023
Merged

chore: Use ruff formatter #18207

merged 12 commits into from
Oct 31, 2023

Conversation

ellie
Copy link
Contributor

@ellie ellie commented Oct 26, 2023

Ruff is now also a formatter! And it runs in a fraction of a second across our whole codebase vs "I waited more than 30s and cancelled it because I got bored".

black .  334.26s
ruff .  0.53s

Problem

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

Ruff is now also a formatter! And it runs in a fraction of a second
across our whole codebase vs "I waited more than 30s and cancelled it
because I got bored".
@ellie ellie changed the title Use ruff formatter chore: Use ruff formatter Oct 26, 2023
@ellie ellie requested a review from fuziontech as a code owner October 26, 2023 11:06
@ellie
Copy link
Contributor Author

ellie commented Oct 26, 2023

tagged @fuziontech as a codeowner because this formatted clickhouse migrations 😢

I highly highly doubt it's an issue, but I know some migration tools check SHAsums

Copy link
Member

@fuziontech fuziontech left a comment

Choose a reason for hiding this comment

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

LGTM! 🚢

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (wasn't pushed!)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@ellie ellie merged commit 0257b2b into master Oct 31, 2023
71 checks passed
@ellie ellie deleted the ellie/ruff-format branch October 31, 2023 13:41
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.

4 participants