mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 10:41:30 +00:00
Meta: Sort all python imports
This commit is contained in:
parent
c53ee261dd
commit
18718e0876
Notes:
github-actions[bot]
2025-06-09 15:26:31 +00:00
Author: https://github.com/trflynn89
Commit: 18718e0876
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5038
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/R-Goc
10 changed files with 24 additions and 13 deletions
|
@ -32,6 +32,7 @@
|
||||||
# For more information, please refer to <http://unlicense.org/>
|
# For more information, please refer to <http://unlicense.org/>
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
import ycm_core
|
import ycm_core
|
||||||
|
|
||||||
DIR_OF_THIS_SCRIPT = os.path.abspath(os.path.dirname(__file__))
|
DIR_OF_THIS_SCRIPT = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
|
@ -6,10 +6,13 @@
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import re
|
import re
|
||||||
from enum import Enum
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
from enum import Enum
|
||||||
from pathlib import Path
|
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):
|
class EnumWithExportName(Enum):
|
||||||
|
|
|
@ -5,7 +5,6 @@ import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
RE_RELEVANT_FILE_EXTENSION = re.compile("\\.(cpp|h|mm|swift|gml|html|js|css|sh|py|json|txt|cmake|gn|gni)$")
|
RE_RELEVANT_FILE_EXTENSION = re.compile("\\.(cpp|h|mm|swift|gml|html|js|css|sh|py|json|txt|cmake|gn|gni)$")
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ from Meta.host_platform import HostSystem
|
||||||
from Meta.host_platform import Platform
|
from Meta.host_platform import Platform
|
||||||
from Meta.utils import run_command
|
from Meta.utils import run_command
|
||||||
|
|
||||||
|
|
||||||
CLANG_MINIMUM_VERSION = 17
|
CLANG_MINIMUM_VERSION = 17
|
||||||
GCC_MINIMUM_VERSION = 13
|
GCC_MINIMUM_VERSION = 13
|
||||||
XCODE_MINIMUM_VERSION = ("14.3", 14030022)
|
XCODE_MINIMUM_VERSION = ("14.3", 14030022)
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
import json
|
import json
|
||||||
import sys
|
|
||||||
import struct
|
import struct
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import sys
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import Path
|
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):
|
class ParseException(Exception):
|
||||||
|
|
|
@ -5,9 +5,10 @@ Generates a clang module map for a given directory
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import pathlib
|
import pathlib
|
||||||
import yaml
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
import yaml
|
||||||
|
|
||||||
|
|
||||||
def write_file_if_not_same(file_path, content):
|
def write_file_if_not_same(file_path, content):
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -7,9 +7,9 @@ It's intended to be used for files that are cached between runs.
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import pathlib
|
import pathlib
|
||||||
|
import sys
|
||||||
import tarfile
|
import tarfile
|
||||||
import zipfile
|
import zipfile
|
||||||
import sys
|
|
||||||
|
|
||||||
|
|
||||||
def extract_member(file, destination, path):
|
def extract_member(file, destination, path):
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from html.parser import HTMLParser
|
from html.parser import HTMLParser
|
||||||
from pathlib import Path
|
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
|
from urllib.request import urlopen
|
||||||
import re
|
|
||||||
import os
|
|
||||||
import sys
|
|
||||||
|
|
||||||
wpt_base_url = "https://wpt.live/"
|
wpt_base_url = "https://wpt.live/"
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@ import os
|
||||||
import socketserver
|
import socketserver
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
from typing import Dict, Optional
|
|
||||||
|
from typing import Dict
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Description:
|
Description:
|
||||||
|
|
|
@ -4,6 +4,7 @@ This script will create a new test file and expectations in the Tests/LibWeb dir
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
TEST_DIR = Path(__file__).resolve().parent
|
TEST_DIR = Path(__file__).resolve().parent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue