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

Migrate to new Ruff "2025 style guide" formatter #2749

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

hanouticelina
Copy link
Contributor

Ruff 0.9.0 introduced a new "2025 style guide" formatter that changes how code is formatted (see release notes here).
This PR runs ruff formatter to comply with the new formatting standards. I'd rather comply to this new (maintained) stable style rather than pinning ruff version.

@hanouticelina hanouticelina requested a review from Wauplin January 14, 2025 15:29
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@Wauplin Wauplin left a comment

Choose a reason for hiding this comment

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

Thanks for noticing and taking care of it @hanouticelina !

Glad that it changed only 19 loc 😄

Can you upgrade the ruff version here to >=0.9.0 ?

@hanouticelina hanouticelina merged commit 70f3a7a into main Jan 14, 2025
17 checks passed
@hanouticelina hanouticelina deleted the migrate-to-2025-ruff-style-guide branch January 14, 2025 16:54
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.

3 participants