-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ruff-format: unify Black with Ruff v0.1
#2837
Conversation
well while the Black was back from 2022, it seems the diff is quite large... |
@Borda seems most of the large diff is adding a blank line after the final |
I found that these changes would be skipped case-by-case, but that would help with diff size at all :( |
@picklelo and the formating evolves over time, and the actual version of Ruff is before 0.1, so a fine middle ground would be just update to Ruff 0.1 with enabled formatting, and if you agree do smaller steps by updating to 0.2 and 0.3 in separate/consecutive/incremental PRs |
v0.1
Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
@Borda yes we should update to the latest version of |
I do not think in ruff lint but as you saw some patterns changed in Black/Ruff formating |
looking to the |
i would assume it's because the formatter moved important |
it seems this also would need to be updated: reflex/scripts/pyi_generator.py Lines 19 to 20 in 036afa9
Or is it fine to drop formatting for the pyi as they seem to be generated anyway?
|
Yeah less concerned about formatting the |
We could drop the formatting of |
Can we sync this PR on main again since there is quite a few conflicts? |
Co-authored-by: Thomas Brandého <thomas.brandeho@gmail.com>
PR should be ready for merge, but it seems like github changed stuff about the available macos worker, we'll need to fix it first 👍 |
Thank you for your help and patience! 🙏
You just need to pin mac-13 |
We've merged a fix for macos CI, one last sync with main and we should be good to go. 🎉 |
@Lendemor merged with |
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.
Lets merge it before more conflicts arise!!! 😁
All Submissions:
Type of change
As Ruff lint is already used I would suggest using also
ruff-format
for better consistency between lint and formattedfixes #2928