Skip to content

Format tests/ and tutorials/ files with Ruff#6360

Merged
y0z merged 2 commits intooptuna:masterfrom
sawa3030:format-with-ruff-1
Dec 11, 2025
Merged

Format tests/ and tutorials/ files with Ruff#6360
y0z merged 2 commits intooptuna:masterfrom
sawa3030:format-with-ruff-1

Conversation

@sawa3030
Copy link
Copy Markdown
Collaborator

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 tests/ and tutorials/. The remaining files listed in the [tool.ruff.format] exclude section are addressed in #6352 .

Description of the changes

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

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

c-bata commented Nov 28, 2025

@gen740 Could you review this PR?

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 Dec 5, 2025
Copy link
Copy Markdown
Member

@y0z y0z left a comment

Choose a reason for hiding this comment

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

LGTM

@y0z y0z merged commit ed60e71 into optuna:master Dec 11, 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.

4 participants