diff --git a/.idea/modules.xml b/.idea/modules.xml
index 04649ba..86f0b83 100644
--- a/.idea/modules.xml
+++ b/.idea/modules.xml
@@ -5,4 +5,4 @@
-
\ No newline at end of file
+
diff --git a/.idea/objutils.iml b/.idea/objutils.iml
index 10c5c2e..59fb9fb 100644
--- a/.idea/objutils.iml
+++ b/.idea/objutils.iml
@@ -12,4 +12,4 @@
-
\ No newline at end of file
+
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index d73b7ce..0c794b9 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -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"]
diff --git a/objutils/hexfile.py b/objutils/hexfile.py
index 840c83b..f82e6cf 100644
--- a/objutils/hexfile.py
+++ b/objutils/hexfile.py
@@ -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):
diff --git a/objutils/ihex.py b/objutils/ihex.py
index 6cadbbc..65656bd 100644
--- a/objutils/ihex.py
+++ b/objutils/ihex.py
@@ -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
diff --git a/objutils/tests/test_section.py b/objutils/tests/test_section.py
index 5cc93e5..8fae41b 100644
--- a/objutils/tests/test_section.py
+++ b/objutils/tests/test_section.py
@@ -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)
-
diff --git a/objutils/tests/test_section_join.py b/objutils/tests/test_section_join.py
index a0c9ae9..caf18b9 100644
--- a/objutils/tests/test_section_join.py
+++ b/objutils/tests/test_section_join.py
@@ -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]
-