Skip to content

Format optuna/ files with Ruff#6352

Merged
gen740 merged 14 commits intooptuna:masterfrom
sawa3030:format-with-ruff
Nov 28, 2025
Merged

Format optuna/ files with Ruff#6352
gen740 merged 14 commits intooptuna:masterfrom
sawa3030:format-with-ruff

Conversation

@sawa3030
Copy link
Copy Markdown
Collaborator

@sawa3030 sawa3030 commented Nov 21, 2025

Motivation

This PR is a follow-up to #6341. Since we now use Ruff as the formatter, some files need to be reformatted to align with its rules. In this PR, I’ve reformatted the files under optuna/. The remaining files listed in the [tool.ruff.format] exclude section are addressed in #6360 .

Description of the changes

  • Update pyproject.toml to remove the corresponding files from the exclude section.
  • Reformat the affected files with Ruff.

@sawa3030
Copy link
Copy Markdown
Collaborator Author

I will mark this PR as ready for review once PR #6341 has been merged.

@sawa3030 sawa3030 marked this pull request as ready for review November 21, 2025 08:02
@c-bata
Copy link
Copy Markdown
Member

c-bata commented Nov 21, 2025

@gen740 Could you review this PR?

@c-bata c-bata added the code-fix Change that does not change the behavior, such as code refactoring. label Nov 21, 2025
Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

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

LGTM after passes all CI checks

Copy link
Copy Markdown
Member

@gen740 gen740 left a comment

Choose a reason for hiding this comment

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

LGTM!

@gen740 gen740 added this to the v4.7.0 milestone Nov 28, 2025
@gen740 gen740 merged commit 8e9538f into optuna:master Nov 28, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-fix Change that does not change the behavior, such as code refactoring.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants