Skip to content

Migrate .coveragerc to pyproject.toml#6292

Merged
c-bata merged 9 commits intooptuna:masterfrom
ParagEkbote:migrate-config-files
Oct 14, 2025
Merged

Migrate .coveragerc to pyproject.toml#6292
c-bata merged 9 commits intooptuna:masterfrom
ParagEkbote:migrate-config-files

Conversation

@ParagEkbote
Copy link
Copy Markdown
Contributor

Fixes #6173

As per #6221, I've only migrated .coveragerc file to pyproject.toml and not modified any other config files. Could you please review the changes?

Motivation

Have less config files to manage.

Description of the changes

Migrate .coveragerc to pyproject.toml

@y0z
Copy link
Copy Markdown
Member

y0z commented Oct 2, 2025

@c-bata, could you review this PR as you were the reviewer for #6221?

@y0z y0z assigned c-bata and y0z Oct 2, 2025
@y0z y0z added the CI Continuous integration. label Oct 2, 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.

I think .coveragerc is no longer needed. So, please remove it.

https://coverage.readthedocs.io/en/latest/config.html

If .coveragerc doesn’t exist and another file hasn’t been specified, then coverage.py will look for settings in other common configuration files, in this order: setup.cfg, tox.ini, or pyproject.toml. The first file found with coverage.py settings will be used and other files won’t be consulted.

@c-bata
Copy link
Copy Markdown
Member

c-bata commented Oct 3, 2025

Hi @ParagEkbote, thank you for your pull request.

Since this change is based on #6221, which was originally contributed by @vitorbborges, we’d like to make sure their contribution is properly acknowledged. Could you please rebase your branch and add a Co-authored-by: vitorbborges <email address> line to your commit message, and then force-push?

@y0z
Copy link
Copy Markdown
Member

y0z commented Oct 3, 2025

This page will be helpful: Creating a commit with multiple authors.

@c-bata
Copy link
Copy Markdown
Member

c-bata commented Oct 3, 2025

By the way, we are currently considering dropping the use of Codecov, so your changes may be removed in the future. Still, we’d like to merge this PR to acknowledge your contribution. Thank you for your understanding.

@ParagEkbote ParagEkbote force-pushed the migrate-config-files branch from e5d8641 to b8f57d5 Compare October 3, 2025 08:58
@ParagEkbote
Copy link
Copy Markdown
Contributor Author

I have added the co-authored commit msg, could you please review?

cc: @c-bata

@y0z
Copy link
Copy Markdown
Member

y0z commented Oct 6, 2025

@ParagEkbote Thank you for your update.

Unfortunately, co-authoring seems to fail.
https://github.com/optuna/optuna/pull/6292/commits
image

If you succeeded in co-authoring, it appears that multiple icons and people are involved, as shown in the example below.
optuna/optuna-mcp@3285c1d
image

Could you please fix your commit to apply co-authoring correctly?

@ParagEkbote ParagEkbote force-pushed the migrate-config-files branch from 3a2305a to 124ef15 Compare October 6, 2025 12:03
@ParagEkbote
Copy link
Copy Markdown
Contributor Author

I have amended the commit and the user is now visible.

Could you please review?

cc: @y0z

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 removed their assignment Oct 7, 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.

The Co-authored-by footer is added only to an empty commit 124ef15, but not to the commits that actually contain the essential changes. As a result, vitorbborges’s contribution is not properly recorded in the commit history.

Could you please rebase your branch to add appropriate Co-authored-by footers to the all relevant commits, and (if possible) squash the commits? After that, please force-push the updated branch.

ParagEkbote and others added 8 commits October 7, 2025 11:37
Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
Co-authored-by: Yoshihiko Ozaki <30489874+y0z@users.noreply.github.com>

Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
Co-authored-by: Yoshihiko Ozaki <30489874+y0z@users.noreply.github.com>

Co-authored-by: vitorbborges <vitorbborges@terra.com.br>
@ParagEkbote ParagEkbote force-pushed the migrate-config-files branch from 124ef15 to 4ede339 Compare October 7, 2025 11:41
@ParagEkbote ParagEkbote requested a review from c-bata October 7, 2025 11:42
@ParagEkbote
Copy link
Copy Markdown
Contributor Author

@c-bata Could you please review?

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. Thank you for the update!

@c-bata c-bata added this to the v4.6.0 milestone Oct 14, 2025
@c-bata c-bata merged commit 437675e into optuna:master Oct 14, 2025
25 checks passed
@ParagEkbote ParagEkbote deleted the migrate-config-files branch October 14, 2025 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve CI/CD by migrating config files to pyproject.toml

3 participants