Skip to content

feat(python): default to Python 3.15 - #1280

Merged
gaborbernat merged 12 commits into
mainfrom
feat/python315-default
Oct 10, 2026
Merged

gaborbernat merged 12 commits into
mainfrom
feat/python315-default

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Use Python 3.15 as the default interpreter for development and automation after its release. Require Python 3.11 or newer after Python 3.10 reached end of life.

Run the type environment on Python 3.14 until its benchmark dependencies support 3.15, tracked in minify-html #287. Keep the type checker's target version at 3.15.

Use the pinned Python 3.15 free-threaded nightly image for ThreadSanitizer.

Run Atheris fuzzing in an isolated Python 3.14 environment until Atheris supports Python 3.15. The upstream fix is in Atheris #115.

@gaborbernat gaborbernat added the enhancement New feature or request label Oct 9, 2026
@codspeed

codspeed Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Merging this PR will regress 4 benchmarks

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 8 improved benchmarks
❌ 4 regressed benchmarks
✅ 570 untouched benchmarks
⏩ 32 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ test_feature[token-attributes-ten] 24.5 µs 27 µs -9.23%
❌ test_feature[text-content-tiny-descendant] 23.3 µs 25.6 µs -8.95%
❌ test_feature[query-root-groups-small] 44.8 µs 48.3 µs -7.33%
❌ test_feature[navigate] 3.3 ms 3.5 ms -5.49%
⚡ test_feature[text-annotation-rules-wildcard] 99.4 ms 91.4 ms +8.8%
⚡ test_feature[text-annotation-rules-matching] 99.6 ms 91.6 ms +8.74%
⚡ test_feature[prune-shared-single] 96.5 µs 89.4 µs +7.91%
⚡ test_feature[text-content] 2.8 ms 2.6 ms +6.99%
⚡ test_feature[text-annotation-rules-interleaved] 5.2 ms 5 ms +5.72%
⚡ test_feature[conformance-sections-medium] 330.4 µs 312.7 µs +5.68%
⚡ test_feature[conformance-sections-large] 2.3 ms 2.1 ms +5.36%
⚡ test_feature[validate-attributes-few-declarations] 2.6 ms 2.5 ms +5.14%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing feat/python315-default (2cbc69b) with main (b0779fa)

Open in CodSpeed

Footnotes

  1. 32 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@gaborbernat
gaborbernat marked this pull request as ready for review October 10, 2026 04:06
@gaborbernat
gaborbernat merged commit ca36ca6 into main Oct 10, 2026
61 checks passed
@gaborbernat
gaborbernat deleted the feat/python315-default branch October 10, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant