gh-139590: Stricter ruff rules for Tools/wasm (#139752)

This commit is contained in:
sobolevn 2025-10-09 01:13:27 +03:00 committed by GitHub
parent a2850a3a91
commit 678e0b818c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 17 deletions

View file

@ -3,16 +3,16 @@
import argparse
import contextlib
import functools
import hashlib
import os
import shutil
import subprocess
import sys
import sysconfig
import hashlib
import tempfile
from urllib.request import urlopen
from pathlib import Path
from textwrap import dedent
from urllib.request import urlopen
try:
from os import process_cpu_count as cpu_count
@ -33,9 +33,7 @@
PREFIX_DIR = CROSS_BUILD_DIR / HOST_TRIPLE / "prefix"
LOCAL_SETUP = CHECKOUT / "Modules" / "Setup.local"
LOCAL_SETUP_MARKER = "# Generated by Tools/wasm/emscripten.py\n".encode(
"utf-8"
)
LOCAL_SETUP_MARKER = b"# Generated by Tools/wasm/emscripten.py\n"
def updated_env(updates={}):
@ -432,6 +430,7 @@ def main():
make_build,
configure_host,
make_host,
clean,
):
subcommand.add_argument(
"--quiet",