-
Notifications
You must be signed in to change notification settings - Fork 207
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
Migration to ruff #1176
Migration to ruff #1176
Conversation
Signed-off-by: Shah, Karan <[email protected]>
bc2c8a2
to
e976d19
Compare
setattr(f.__func__, "_stream_buffer", pickle.loads(stream_buffer)) | ||
f.__func__._stream_buffer = pickle.loads(stream_buffer) |
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.
This is an example of simplification automatically made by ruff.
Signed-off-by: Shah, Karan <[email protected]>
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.
LGTM.
@MasterSkepticista Can you please add changes for Check code format pipeline as well. |
It is updated, I'm refactoring warnings raised by ruff, few of the remaining ones are mentioned in #1177. Would appreciate any help! |
0b74d2d
to
bde431b
Compare
Signed-off-by: Shah, Karan <[email protected]>
Signed-off-by: Shah, Karan <[email protected]>
58eeac9
into
securefederatedai:develop
This PR migrates all lint/format tooling to ruff, a modern, fast, rust-based formatter with significantly more capabilities.
Ruff has a drop-in parity with flake8, black and isort - all linting tools used in OpenFL. All config now resides in
pyproject.toml
.