Skip to content

[3.14] gh-139590: Stricter ruff rules for Tools/wasm (GH-139752) - #139811

Merged
hugovk merged 4 commits into
python:3.14from
miss-islington:backport-678e0b8-3.14
Oct 14, 2025
Merged

hugovk merged 4 commits into
python:3.14from
miss-islington:backport-678e0b8-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 8, 2025 •

Copy link
Copy Markdown
Contributor

(cherry picked from commit 678e0b8)

Co-authored-by: sobolevn mail@sobolevn.me

)

(cherry picked from commit 678e0b8)

Co-authored-by: sobolevn <mail@sobolevn.me>
@hugovk

hugovk commented Oct 9, 2025

Copy link
Copy Markdown
Member

I pushed Ruff's lint+format fixes, which use target-version = "py310" (via .ruff.toml).

But Tools/wasm/mypy.ini has:

# Make sure the wasm can be run using Python 3.8:
python_version = 3.8

So there's a mismatch.

Also Tools/wasm/mypy.ini was deleted in main (ee49644 and 14291fa) so shall we also delete it in these backports?

@hugovk
hugovk requested a review from ezio-melotti as a code owner October 9, 2025 06:40
@brettcannon

Copy link
Copy Markdown
Member

I opted out of mypy for the WASI stuff, so that's a question for @freakboy3742 and @hoodmane .

@freakboy3742 freakboy3742 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I haven't been systematically running mypy locally, so it's probably safer to leave off the Emscripten code for now.

@hugovk
hugovk merged commit 5848d80 into python:3.14 Oct 14, 2025
@miss-islington
miss-islington deleted the backport-678e0b8-3.14 branch January 2, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

5 participants