Skip to content

Add pre commit config#231

Merged
toshihikoyanase merged 2 commits intooptuna:mainfrom
milkcoffeen:add-pre-commit-config
May 31, 2025
Merged

Add pre commit config#231
toshihikoyanase merged 2 commits intooptuna:mainfrom
milkcoffeen:add-pre-commit-config

Conversation

@milkcoffeen
Copy link
Copy Markdown
Contributor

Motivation

This pull request introduces a pre-commit framework to enforce coding standards and streamline code formatting. It includes updates to the .pre-commit-config.yaml file for configuring pre-commit hooks and updates to the CONTRIBUTING.md file to guide contributors on using the new setup.

Description of the changes

  • add pre-commit-config.yaml
  • add explain of pre-commit command to CONTRIBUTING.md

@toshihikoyanase toshihikoyanase self-assigned this May 31, 2025
@toshihikoyanase toshihikoyanase added the other Issue/PR that does not fit into any other label. label May 31, 2025
Copy link
Copy Markdown
Member

@toshihikoyanase toshihikoyanase left a comment

Choose a reason for hiding this comment

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

The change in this PR is based on https://github.com/optuna/optuna/blob/master/.pre-commit-config.yaml.
mypy is not included in this PR, but it seems reasonable since the dependencies differ module by module.

LGTM.

@toshihikoyanase toshihikoyanase added this to the v4.4.0 milestone May 31, 2025
@toshihikoyanase toshihikoyanase merged commit 7856b55 into optuna:main May 31, 2025
26 checks passed
@not522 not522 added the sprint-20250531 PR from the online sprint event May 31, 2025. label May 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

other Issue/PR that does not fit into any other label. sprint-20250531 PR from the online sprint event May 31, 2025.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants