Skip to content

Drop Python 3.9 support and update dev tooling - #371

Merged
deepcharles merged 1 commit into
deepcharles:masterfrom
pietroagazzi:chore/update-version-support
May 24, 2026
Merged

Drop Python 3.9 support and update dev tooling#371
deepcharles merged 1 commit into
deepcharles:masterfrom
pietroagazzi:chore/update-version-support

Conversation

@pietroagazzi

Copy link
Copy Markdown
Contributor

Summary

Notes

Added __all__ to ruptures.exceptions and ruptures.metrics.sanity_check
to resolve a formatting conflict between black and docformatter that
appeared when a module docstring is immediately followed by a class definition.

BREAKING CHANGE: minimum supported Python version is now 3.10; Python
3.9 is no longer tested or officially supported.

- remove Python 3.9 from CI test matrix and wheel builds
- replace oldest-supported-numpy with numpy>=2.0.0 as build dependency
- upgrade docformatter pre-commit hook to v1.7.8, fixing Python 3.14
  incompatibility (resolves PyCQA/docformatter#293 and deepcharles#340)
- configure docformatter wrap limits to match black's line length (88)
- reformat docstrings across codebase to comply with updated tooling
- add __all__ to ruptures.exceptions and ruptures.metrics.sanity_check

Refs: deepcharles#360
@pietroagazzi

Copy link
Copy Markdown
Contributor Author

There are several files in the PR with reformatted docstrings. The change appears to be due to the black upgrade, although I haven't investigated the root cause in depth.

If this turns out to be an issue, or if you'd like more clarity on why these changes were made, I can spend some time documenting the underlying reasons more thoroughly. For now, I preferred not to dig further and to proceed with the reformatting so the tests would pass.

@codecov

codecov Bot commented May 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (802319f) to head (7c7894b).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #371   +/-   ##
=======================================
  Coverage   98.77%   98.77%           
=======================================
  Files          40       40           
  Lines         980      982    +2     
=======================================
+ Hits          968      970    +2     
  Misses         12       12           
Flag Coverage Δ
unittests 98.77% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@deepcharles
deepcharles self-requested a review May 24, 2026 04:35
@deepcharles
deepcharles merged commit 6e3bb72 into deepcharles:master May 24, 2026
21 checks passed
@deepcharles

Copy link
Copy Markdown
Owner

Very helpful thanks! Merging now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants