diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index d4867ba5832..0462ce621a7 100644 --- a/.ycm_extra_conf.py +++ b/.ycm_extra_conf.py @@ -32,6 +32,7 @@ # For more information, please refer to import os + import ycm_core DIR_OF_THIS_SCRIPT = os.path.abspath(os.path.dirname(__file__)) diff --git a/Libraries/LibGfx/TIFFGenerator.py b/Libraries/LibGfx/TIFFGenerator.py index 9cd57d6dcb6..f31a3bdfb91 100755 --- a/Libraries/LibGfx/TIFFGenerator.py +++ b/Libraries/LibGfx/TIFFGenerator.py @@ -6,10 +6,13 @@ import argparse import re -from enum import Enum + from collections import namedtuple +from enum import Enum from pathlib import Path -from typing import Any, List, Type +from typing import Any +from typing import List +from typing import Type class EnumWithExportName(Enum): diff --git a/Meta/check-newlines-at-eof.py b/Meta/check-newlines-at-eof.py index 34c2aa12521..93e69163dc3 100755 --- a/Meta/check-newlines-at-eof.py +++ b/Meta/check-newlines-at-eof.py @@ -5,7 +5,6 @@ import re import subprocess import sys - RE_RELEVANT_FILE_EXTENSION = re.compile("\\.(cpp|h|mm|swift|gml|html|js|css|sh|py|json|txt|cmake|gn|gni)$") diff --git a/Meta/find_compiler.py b/Meta/find_compiler.py index f4f0bca9548..104edb18ad5 100755 --- a/Meta/find_compiler.py +++ b/Meta/find_compiler.py @@ -18,7 +18,6 @@ from Meta.host_platform import HostSystem from Meta.host_platform import Platform from Meta.utils import run_command - CLANG_MINIMUM_VERSION = 17 GCC_MINIMUM_VERSION = 13 XCODE_MINIMUM_VERSION = ("14.3", 14030022) diff --git a/Meta/generate-libwasm-spec-test.py b/Meta/generate-libwasm-spec-test.py index 1871b1ffed0..49f687d63bb 100644 --- a/Meta/generate-libwasm-spec-test.py +++ b/Meta/generate-libwasm-spec-test.py @@ -1,10 +1,13 @@ import json -import sys import struct import subprocess +import sys + from dataclasses import dataclass from pathlib import Path -from typing import Union, Literal, Any +from typing import Any +from typing import Literal +from typing import Union class ParseException(Exception): diff --git a/Meta/generate_clang_module_map.py b/Meta/generate_clang_module_map.py index ea54a481385..4ea5bb425a7 100644 --- a/Meta/generate_clang_module_map.py +++ b/Meta/generate_clang_module_map.py @@ -5,9 +5,10 @@ Generates a clang module map for a given directory import argparse import pathlib -import yaml import sys +import yaml + def write_file_if_not_same(file_path, content): try: diff --git a/Meta/gn/build/extract_archive_contents.py b/Meta/gn/build/extract_archive_contents.py index ba1ed4ef7c3..eb7bcac4ef6 100644 --- a/Meta/gn/build/extract_archive_contents.py +++ b/Meta/gn/build/extract_archive_contents.py @@ -7,9 +7,9 @@ It's intended to be used for files that are cached between runs. import argparse import pathlib +import sys import tarfile import zipfile -import sys def extract_member(file, destination, path): diff --git a/Meta/import-wpt-test.py b/Meta/import-wpt-test.py index d4df2db9ba0..3a245480e98 100755 --- a/Meta/import-wpt-test.py +++ b/Meta/import-wpt-test.py @@ -1,15 +1,17 @@ #!/usr/bin/env python3 +import os +import re +import sys + from collections import namedtuple from dataclasses import dataclass from enum import Enum from html.parser import HTMLParser from pathlib import Path -from urllib.parse import urljoin, urlparse +from urllib.parse import urljoin +from urllib.parse import urlparse from urllib.request import urlopen -import re -import os -import sys wpt_base_url = "https://wpt.live/" diff --git a/Tests/LibWeb/Fixtures/http-test-server.py b/Tests/LibWeb/Fixtures/http-test-server.py index a50bd6e56b9..b720b6aa3da 100755 --- a/Tests/LibWeb/Fixtures/http-test-server.py +++ b/Tests/LibWeb/Fixtures/http-test-server.py @@ -6,7 +6,9 @@ import os import socketserver import sys import time -from typing import Dict, Optional + +from typing import Dict +from typing import Optional """ Description: diff --git a/Tests/LibWeb/add_libweb_test.py b/Tests/LibWeb/add_libweb_test.py index a183db633b2..991c0353ce5 100755 --- a/Tests/LibWeb/add_libweb_test.py +++ b/Tests/LibWeb/add_libweb_test.py @@ -4,6 +4,7 @@ This script will create a new test file and expectations in the Tests/LibWeb dir """ import argparse + from pathlib import Path TEST_DIR = Path(__file__).resolve().parent