Skip to content

Optional mypy check - #6028

Merged
nabenabe0928 merged 15 commits into
optuna:masterfrom
Alnusjaponica:optional-mypy-check
Apr 23, 2025
Merged

nabenabe0928 merged 15 commits into
optuna:masterfrom
Alnusjaponica:optional-mypy-check

Conversation

@Alnusjaponica

Copy link
Copy Markdown
Contributor

Motivation

Keep lint & type check passed with optional dependency.

Description of the changes

This PR adds a daily CI to check if lint & type check with optional dependency and resolve current problems.

@Alnusjaponica

Alnusjaponica commented Apr 1, 2025 •

Copy link
Copy Markdown
Contributor Author

See Alnusjaponica#31 for the actual result.

@Alnusjaponica
Alnusjaponica marked this pull request as ready for review April 1, 2025 06:51
@nabenabe0928

Copy link
Copy Markdown
Contributor

@not522 Could you review this PR?

Comment thread .github/workflows/checks-optional.yaml Resolved
Comment thread .github/workflows/checks-optional.yaml Resolved
Comment thread optuna/_gp/gp.py Resolved
Co-authored-by: Shuhei Watanabe <[email protected]>
Comment thread .github/workflows/checks-optional.yaml Resolved
Comment thread .github/workflows/checks-optional.yaml Resolved
@HideakiImamura

Copy link
Copy Markdown
Member

@sawa3030 Could you review this PR?

@not522

not522 commented Apr 4, 2025

Copy link
Copy Markdown
Member

Note for the context of this PR: Checks with optional dependencies was introduced in #3580 and removed in #5277.

@not522

not522 commented Apr 9, 2025

Copy link
Copy Markdown
Member

@codecov

codecov Bot commented Apr 15, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 95.83333% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.36%. Comparing base (11ff024) to head (0458a7c).
Report is 24 commits behind head on master.

Files with missing lines Patch % Lines
optuna/storages/_rdb/models.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6028      +/-   ##
==========================================
- Coverage   88.39%   88.36%   -0.03%     
==========================================
  Files         206      206              
  Lines       13921    13916       -5     
==========================================
- Hits        12305    12297       -8     
- Misses       1616     1619       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nabenabe0928 nabenabe0928 added the code-fix Change that does not change the behavior, such as code refactoring. label Apr 16, 2025
@nabenabe0928 nabenabe0928 added this to the v4.4.0 milestone Apr 16, 2025
@not522

not522 commented Apr 22, 2025

Copy link
Copy Markdown
Member

Could you fix the CI error?

Comment thread optuna/storages/_rdb/models.py Resolved

@nabenabe0928 nabenabe0928 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Almost LGTM once the following is addressed:

@Alnusjaponica

Copy link
Copy Markdown
Contributor Author

Sorry for my delayed reply. I've applied the suggested changes and watching Alnusjaponica#32 to see the result

@nabenabe0928 nabenabe0928 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for the update, LGTM!

@nabenabe0928 nabenabe0928 removed their assignment Apr 23, 2025

@not522 not522 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@nabenabe0928
nabenabe0928 merged commit 0e509f7 into optuna:master Apr 23, 2025
@Alnusjaponica
Alnusjaponica deleted the optional-mypy-check branch April 23, 2025 16:24
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.

5 participants