-
Notifications
You must be signed in to change notification settings - Fork 2
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
Migrate to ruff #423
Migrate to ruff #423
Conversation
As #360 shows, black and reorder-python-imports conflict on how they format imports. Switch over to `ruff` + its builtin import sorter (isort).
2b8e3b0
to
fbf1ab2
Compare
|
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.
Nice!
distance = Quantity( | ||
value=1, unit="m", caption="Distance" | ||
) | ||
distance = Quantity(value=1, unit="m", caption="Distance") |
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 just ask myself why did it reformat the string.
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.
It also formats code in docstrings IIRC.
As #360 shows, black and reorder-python-imports conflict on how they format imports.
Switch over to
ruff
+ its builtin import sorter (isort).