Meta: Sort all python imports

This commit is contained in:
Timothy Flynn 2025-06-09 10:41:54 -04:00 committed by Tim Flynn
commit 18718e0876
Notes: github-actions[bot] 2025-06-09 15:26:31 +00:00
10 changed files with 24 additions and 13 deletions

View file

@ -32,6 +32,7 @@
# For more information, please refer to <http://unlicense.org/>
import os
import ycm_core
DIR_OF_THIS_SCRIPT = os.path.abspath(os.path.dirname(__file__))

View file

@ -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):

View file

@ -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)$")

View file

@ -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)

View file

@ -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):

View file

@ -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:

View file

@ -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):

View file

@ -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/"

View file

@ -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:

View file

@ -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