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 .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/objutils.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.15.6
rev: v0.15.7
hooks:
- id: ruff
args: ["--fix", "--exit-non-zero-on-fix"]
Expand Down
2 changes: 1 addition & 1 deletion objutils/hexfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def __init__(self) -> None:
self.stats = Statistics()
self.valid = True
self.formats: list[tuple[int, re.Pattern[str]]] = []
self.base_address = 0 # Base address for relative addressing (if applicable - mainly Intel HEX)
self.base_address = 0 # Base address for relative addressing (if applicable - mainly Intel HEX)

# Parse FORMAT_SPEC into compiled patterns
if isinstance(self.FORMAT_SPEC, str):
Expand Down
3 changes: 1 addition & 2 deletions objutils/ihex.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""

import operator
from collections.abc import Mapping, Sequence
from functools import partial
from typing import Any, Callable, Optional
from typing import Any, Optional

import objutils.checksums as checksums
import objutils.hexfile as hexfile
Expand Down
1 change: 0 additions & 1 deletion objutils/tests/test_section.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,4 +862,3 @@ def test_asam_ndarray_fortran_roundtrip():
assert sec.read(0x1000, 12) == bytearray(b"\x01\x00\x04\x00\x02\x00\x05\x00\x03\x00\x06\x00")
result = sec.read_asam_ndarray(0x1000, 12, "UWORD", shape=(3, 2), order="F", byte_order="MSB_FIRST_MSW_LAST")
assert np.array_equal(result, arr)

1 change: 0 additions & 1 deletion objutils/tests/test_section_join.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,3 @@ def test_join_sections_keeps_conflict_split_but_merges_followup() -> None:
def test_join_sections_rejects_non_section_entries() -> None:
with pytest.raises(TypeError):
join_sections([Section(0x1000, b"A"), "not-a-section"]) # type: ignore[list-item]

Loading