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

Migration to ruff #1176

Conversation

MasterSkepticista
Copy link
Collaborator

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.

setattr(f.__func__, "_stream_buffer", pickle.loads(stream_buffer))
f.__func__._stream_buffer = pickle.loads(stream_buffer)
Copy link
Collaborator Author

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.

Copy link
Collaborator

@tanwarsh tanwarsh left a comment

Choose a reason for hiding this comment

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

LGTM.

@tanwarsh
Copy link
Collaborator

@MasterSkepticista Can you please add changes for Check code format pipeline as well.

@MasterSkepticista
Copy link
Collaborator Author

@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!

@MasterSkepticista MasterSkepticista merged commit 58eeac9 into securefederatedai:develop Dec 2, 2024
28 of 29 checks passed
@MasterSkepticista MasterSkepticista deleted the karansh1/ruff_migration branch December 9, 2024 05:58
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.

2 participants