Skip to content

Fix cython-lint reported problem in sklearn/cluster/_hdbscan/_tree.pyx - #32499

Merged
lesteve merged 3 commits into
scikit-learn:mainfrom
ogrisel:fix-cython-lint
Oct 14, 2025
Merged

lesteve merged 3 commits into
scikit-learn:mainfrom
ogrisel:fix-cython-lint

Conversation

@ogrisel

@ogrisel ogrisel commented Oct 14, 2025

Copy link
Copy Markdown
Member

Fixes #32498

@ogrisel ogrisel changed the title Fix cython-lint reported problem in sklearn/cluster/_hdbscan/_tree.pyx Fix cython-lint reported problem in sklearn/cluster/_hdbscan/_tree.pyx Oct 14, 2025
@github-actions

github-actions Bot commented Oct 14, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

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

Generated for commit: 6b8e36a. Link to the linter CI: here

@ogrisel

ogrisel commented Oct 14, 2025

Copy link
Copy Markdown
Member Author

The problem is that the ./build_tools/linting.sh script used by the CI does not use the same version of the linter as the one configured in .pre-commit-config.yaml.

We need to align the two configs to avoid this problem to happen again in the future.

@ogrisel

ogrisel commented Oct 14, 2025

Copy link
Copy Markdown
Member Author

The circle CI git clone failure is annoying: I tried to restart this job several times, and it always fails the same way, but I cannot reproduce locally.

@lesteve

lesteve commented Oct 14, 2025

Copy link
Copy Markdown
Member

I think the root cause is likely a cython-lint change in cython-lint 0.18 released 5 hours ago https://pypi.org/project/cython-lint/#history?

@ogrisel

ogrisel commented Oct 14, 2025

Copy link
Copy Markdown
Member Author

Yes it is. But the git clone failure is unrelated.

@lesteve

lesteve commented Oct 14, 2025

Copy link
Copy Markdown
Member

Yup, two unrelated issues at once ... whoever did something to annoy the the universe please raise your hands 🙃

@lesteve

lesteve commented Oct 14, 2025 •

Copy link
Copy Markdown
Member

Yes it is. But the git clone failure is unrelated.

Random shot in the dark (I vaguely remembered a recent email), could it be related to CircleCI blobless checkout. In principle we are supposed to be affected only on November 3rd though ...

@lesteve

lesteve commented Oct 14, 2025

Copy link
Copy Markdown
Member

Looks like a temporary glitch, restarting CircleCI fixed it eventually ...

@lesteve

lesteve commented Oct 14, 2025

Copy link
Copy Markdown
Member

I enabled auto-merge

@lesteve
lesteve enabled auto-merge (squash) October 14, 2025 16:44
@lesteve
lesteve merged commit 90ef87a into scikit-learn:main Oct 14, 2025
@ogrisel
ogrisel deleted the fix-cython-lint branch October 14, 2025 18:48
thomass-dev pushed a commit to thomass-dev/scikit-learn-fork that referenced this pull request Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cython-lint failure on main

2 participants