Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repos:
args: ["--line-length=132"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.16.0
rev: v0.16.1
hooks:
- id: ruff
args: ["--fix", "--exit-non-zero-on-fix"]
Expand Down
1 change: 0 additions & 1 deletion objutils/dwarf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ class Readers:
"""



@dataclass
class DIEAttribute:
"""Parsed DIE attribute with value.
Expand Down
2 changes: 0 additions & 2 deletions objutils/dwarf/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,10 @@ class ULEBError(ConstructError):
"""Raised when ULEB128 parsing or building encounters an error."""



class SLEBError(ConstructError):
"""Raised when SLEB128 parsing or building encounters an error."""



@singleton
class ULEB(Construct):
"""Unsigned LEB128 (Little-Endian Base-128) Variable-Length Integer.
Expand Down
1 change: 0 additions & 1 deletion objutils/dwarf/readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class Readers:
"""



class DwarfReaders:
"""High-Level DWARF Data Reader Interface.

Expand Down
2 changes: 0 additions & 2 deletions objutils/elf/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,6 @@ class DebugInformation(Base, RidMixIn):
"""



class CompilationUnit(Base, RidMixIn):
__tablename__ = "compilationunit"
"""ORM model for DWARF Compilation Unit (CU).
Expand All @@ -1193,7 +1192,6 @@ class CompilationUnit(Base, RidMixIn):
"""



def calculateCacheSize(value: int) -> int:
"""Convert cache size in bytes to SQLite PRAGMA format.

Expand Down
6 changes: 0 additions & 6 deletions objutils/hexfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,32 +335,26 @@ class HexFileError(Exception):
"""Base exception for all hex file operations."""



class ParseError(HexFileError):
"""Base for parsing-related errors."""



class InvalidRecordTypeError(ParseError):
"""Raised when record type is not recognized."""



class InvalidRecordLengthError(ParseError):
"""Raised when record length doesn't match data."""



class InvalidRecordChecksumError(ParseError):
"""Raised when checksum validation fails."""



class AddressRangeToLargeError(HexFileError):
"""Raised when address exceeds format capabilities."""



# Deprecated alias for backward compatibility
Invalidrecord_typeError = InvalidRecordTypeError

Expand Down
2 changes: 0 additions & 2 deletions objutils/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,6 @@ class CodecDoesNotExistError(Exception):
"""



class CodecAlreadyExistError(Exception):
"""Raised when attempting to register a format that already exists.

Expand All @@ -230,7 +229,6 @@ class CodecAlreadyExistError(Exception):
"""



class Codec(NamedTuple):
"""Container for format reader, writer, and metadata.

Expand Down
Loading