Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
netanelc305 committed May 16, 2024
1 parent 6acc0d0 commit 711a5af
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions hilda/hilda_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
from pathlib import Path
from typing import Any, Callable, List, Optional, Union

import IPython
import hexdump
from IPython.core.magic import register_line_magic # noqa: F401
import IPython
from humanfriendly import prompts
from humanfriendly.terminal.html import html_to_ansi
from IPython.core.magic import register_line_magic # noqa: F401
from pygments import highlight
from pygments.formatters import TerminalTrueColorFormatter
from pygments.lexers import XmlLexer
Expand Down
2 changes: 1 addition & 1 deletion hilda/launch_lldb.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import os
from threading import Thread
from typing import Optional, List
from typing import List, Optional

import coloredlogs

Expand Down
2 changes: 1 addition & 1 deletion hilda/snippets/dyld.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from hilda.lldb_importer import lldb
from cached_property import cached_property

from hilda.lldb_importer import lldb
from hilda.snippets.macho.all_image_infos import AllImageInfos
from hilda.snippets.syslog import open_syslog_socket

Expand Down
3 changes: 1 addition & 2 deletions hilda/snippets/mach/CFRunLoopServiceMachPort_hooks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from hilda.lldb_importer import lldb

from hilda.exceptions import SymbolAbsentError
from hilda.lldb_importer import lldb


def _CFRunLoopServiceMachPort_hook(hilda, *args):
Expand Down
2 changes: 1 addition & 1 deletion hilda/snippets/macho/all_image_infos.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import logging

from hilda.lldb_importer import lldb
from construct import Array, CString, Hex, If, Int32ub, Int32ul, Int64ul, Pointer, Struct, Tell, this
from humanfriendly import prompts

from hilda.lldb_importer import lldb
from hilda.snippets.macho.image_info import ImageInfo, dyld_image_info_t
from hilda.snippets.macho.macho import mach_header_t
from hilda.snippets.uuid import uuid_t
Expand Down
2 changes: 1 addition & 1 deletion hilda/snippets/macho/image_info.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from hilda.lldb_importer import lldb
from construct import CString, If, Int64ul, Pointer, Struct, this

from hilda.lldb_importer import lldb
from hilda.snippets.macho.macho import mach_header_t
from hilda.snippets.macho.macho_load_commands import LoadCommands
from hilda.snippets.uuid import uuid_t
Expand Down
2 changes: 1 addition & 1 deletion hilda/snippets/macho/macho_load_commands.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import List

from hilda.lldb_importer import lldb
from construct import Array, Bytes, Enum, Hex, Int8ul, Int32ul, Int64ul, PaddedString, Pointer, Seek, Struct, Switch, \
Tell, this

from hilda.lldb_importer import lldb
from hilda.snippets.macho.apple_version import version_t
from hilda.symbol import SymbolFormatField

Expand Down
2 changes: 1 addition & 1 deletion hilda/snippets/xpc.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from pprint import pformat

from hilda.lldb_importer import lldb
from pygments import highlight
from pygments.formatters import TerminalTrueColorFormatter
from pygments.lexers import PythonLexer

from hilda.exceptions import ConvertingFromNSObjectError
from hilda.lldb_importer import lldb

# module global for storing all active xpc connections
active_xpc_connections = {}
Expand Down
2 changes: 1 addition & 1 deletion hilda/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
from contextlib import contextmanager
from typing import Any, Optional

from hilda.lldb_importer import lldb
from construct import FormatField

from hilda.common import CfSerializable
from hilda.lldb_importer import lldb
from hilda.objective_c_class import Class

ADDRESS_SIZE_TO_STRUCT_FORMAT = {1: 'B', 2: 'H', 4: 'I', 8: 'Q'}
Expand Down
3 changes: 1 addition & 2 deletions hilda/symbols_jar.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from contextlib import suppress

from hilda.lldb_importer import lldb

from hilda.exceptions import AddingLldbSymbolError, SymbolAbsentError
from hilda.lldb_importer import lldb


class SymbolsJar(dict):
Expand Down

0 comments on commit 711a5af

Please sign in to comment.