diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index a923b3b..fe71d6a 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -40,4 +40,4 @@ jobs: - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@v1.13.0 with: - attestations: true \ No newline at end of file + attestations: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f1de35..2519efb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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"] @@ -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"] diff --git a/objutils/hexdump.py b/objutils/hexdump.py index 2f81939..9b6ffcb 100644 --- a/objutils/hexdump.py +++ b/objutils/hexdump.py @@ -36,7 +36,7 @@ def isprintable(ch: int) -> bool: - return 0x1F < ch < 0x7f + return 0x1F < ch < 0x7F def unpack(*args: int) -> Sequence[int]: diff --git a/objutils/tests/test_shf.py b/objutils/tests/test_shf.py index 4ebf154..b866608 100644 --- a/objutils/tests/test_shf.py +++ b/objutils/tests/test_shf.py @@ -84,9 +84,7 @@ def test_dump_shf1(): sr = loads("srec", SREC1) img = Image([sr[0]]) shf = dumps("shf", img) - assert ( - shf - == """ + assert shf == """ 57 6f 77 21 20 44 69 64 20 79 6f 75 20 72 65 61 @@ -95,4 +93,3 @@ def test_dump_shf1(): 6f 20 72 65 61 64 20 74 68 69 73 3f """ - ) diff --git a/pyproject.toml b/pyproject.toml index f13f788..da5c8e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -130,4 +130,3 @@ push = false "objutils/version.py" = [ '__version__ = "{version}"', ] -