Skip to content

DOC move pre-commit instructions to development setup and make them mandatory - #32664

Merged
lesteve merged 16 commits into
scikit-learn:mainfrom
AnneBeyer:doc_pre-commit
Nov 12, 2025
Merged

lesteve merged 16 commits into
scikit-learn:mainfrom
AnneBeyer:doc_pre-commit

Conversation

@AnneBeyer

Copy link
Copy Markdown
Member

Reference Issues/PRs

Follow up from #32509, specifically this comment

What does this implement/fix? Explain your changes.

Move the installation and set up instructions for pre-commit to the development setup and remove the (Optional) marker. I also made it a sub-heading, so the linting message can point directly to it.

Any other comments?

I moved it to the section just before installing scikit-learn, because pre-commit is also already installed in Codespaces, so the instructions on using that (#32474) can then jump over everything up to this point.

@StefanieSenger @lesteve

@github-actions

github-actions Bot commented Nov 6, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 71f571b. Link to the linter CI: here

Comment thread doc/developers/development_setup.rst Resolved
@AnneBeyer

Copy link
Copy Markdown
Member Author

After seeing this comment by @lesteve in another discussion on the worry that the use of pre-commit might confuse people, I added a note in the development workflow as well.

@lucyleeow lucyleeow 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.

Small nit but LGTM! Thanks!

Comment thread doc/developers/development_setup.rst Resolved
Comment thread doc/developers/contributing.rst Resolved
Comment thread doc/developers/contributing.rst Resolved

@lesteve lesteve 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.

Thanks for the PR, a few comments

Comment thread doc/developers/development_setup.rst Resolved
Comment thread doc/developers/development_setup.rst Resolved
Comment thread doc/developers/contributing.rst Resolved

@lucyleeow lucyleeow 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.

One small nit otherwise LGTM, thank you!

Comment thread doc/developers/development_setup.rst Resolved
Co-authored-by: Lucy Liu <[email protected]>
@lucyleeow lucyleeow added the Waiting for Second Reviewer First reviewer is done, need a second one! label Nov 12, 2025

@lesteve lesteve 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, thanks for the PR!

@lesteve

lesteve commented Nov 12, 2025

Copy link
Copy Markdown
Member

I pushed some wording tweaks mostly to try to make it shorter and enabled auto-merge.

Further improvements can be done in a follow-up PR!

@lesteve
lesteve merged commit a987611 into scikit-learn:main Nov 12, 2025
@AnneBeyer
AnneBeyer deleted the doc_pre-commit branch November 18, 2025 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Waiting for Second Reviewer First reviewer is done, need a second one!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants