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 .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
attestations: true
attestations: true
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black
language_version: python3.13

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.11
rev: v0.14.13
hooks:
- id: ruff
args: ["--fix", "--exit-non-zero-on-fix"]
Expand All @@ -59,7 +59,7 @@ repos:
args: ["--py39-plus"]

- repo: https://github.com/PyCQA/bandit
rev: 1.9.2
rev: 1.9.3
hooks:
- id: bandit
args: ["-c", "bandit.yml"]
Expand Down
2 changes: 1 addition & 1 deletion objutils/hexdump.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@


def isprintable(ch: int) -> bool:
return 0x1F < ch < 0x7f
return 0x1F < ch < 0x7F


def unpack(*args: int) -> Sequence[int]:
Expand Down
5 changes: 1 addition & 4 deletions objutils/tests/test_shf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ def test_dump_shf1():
sr = loads("srec", SREC1)
img = Image([sr[0]])
shf = dumps("shf", img)
assert (
shf
== """<?xml version="1.0" encoding="UTF-8"?>
assert shf == """<?xml version="1.0" encoding="UTF-8"?>
<dump name="SHF dump by objutils" blocks="0001">
<block name="Section #0000" address="0000b000" word_size="01" length="0000003c" checksum="9a8e02926903975688683136d71ff38ca9fc9847">
57 6f 77 21 20 44 69 64 20 79 6f 75 20 72 65 61
Expand All @@ -95,4 +93,3 @@ def test_dump_shf1():
6f 20 72 65 61 64 20 74 68 69 73 3f
</block>
</dump>"""
)
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,3 @@ push = false
"objutils/version.py" = [
'__version__ = "{version}"',
]

Loading