From f810e5a24c39915a6d16677231b7b6832bff714d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2026 20:07:07 +0000 Subject: [PATCH 1/4] Bump the dependencies group with 2 updates Bumps the dependencies group with 2 updates: [actions/checkout](https://github.com/actions/checkout) and [actions/setup-python](https://github.com/actions/setup-python). Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v7.0.0...v7.0.1) Updates `actions/setup-python` from 6.3.0 to 7.0.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6.3.0...v7.0.0) Bump the dependencies group with 2 updates Bumps the dependencies group with 2 updates: [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit) and [https://github.com/codespell-project/codespell](https://github.com/codespell-project/codespell). Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.20 to 0.16.1 - [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases) - [Commits](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.20...v0.16.1) Updates `https://github.com/codespell-project/codespell` from v2.4.2 to 2.4.3 - [Release notes](https://github.com/codespell-project/codespell/releases) - [Commits](https://github.com/codespell-project/codespell/compare/v2.4.2...v2.4.3) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dependencies - dependency-name: actions/setup-python dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: dependencies - dependency-name: https://github.com/astral-sh/ruff-pre-commit dependency-version: 0.16.1 dependency-type: direct:production dependency-group: dependencies - dependency-name: https://github.com/codespell-project/codespell dependency-version: 2.4.3 dependency-type: direct:production dependency-group: dependencies ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 4 ++-- .pre-commit-config.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f4ab7b0..9b005c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,12 +109,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v7.0.0 + uses: actions/checkout@v7.0.1 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v6.3.0 + uses: actions/setup-python@v7.0.0 if: matrix.python-version != 'system' with: python-version: ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d6a4c9..4388d03 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,13 +15,13 @@ repos: - id: docformatter args: [--in-place, --black] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.20 + rev: v0.16.1 hooks: - id: ruff-format - id: ruff-check args: [ --fix ] - repo: https://github.com/codespell-project/codespell - rev: v2.4.2 + rev: v2.4.3 hooks: - id: codespell # remove toml extra once Python 3.10 is no longer supported From d043d4a7b5438ae9c74e437e12dc1814cbeda184 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 3 Aug 2026 08:14:38 +0800 Subject: [PATCH 2/4] Ruff fixes and ignores. --- pyproject.toml | 7 +++++++ tests/test_common.py | 12 ++++++++---- tests/testbed.py | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index bbf8cfc..50a405e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -158,3 +158,10 @@ extend-select = [ # use improvement. # "SIM", # flake8-simplify ] + +[tool.ruff.lint.per-file-ignores] +# Ignores needed to pass the Ruff 0.16 update. +# Module names match platform names (iOS, macOS), which don't conform to +# standard module naming conventions. +"tests/test_iOS.py" = ["N999"] +"tests/test_macOS.py" = ["N999", "PLW1510"] diff --git a/tests/test_common.py b/tests/test_common.py index bb628f7..974bb58 100644 --- a/tests/test_common.py +++ b/tests/test_common.py @@ -266,13 +266,17 @@ def test_hashlib(): ), "shake_128": ( 40, - "c1301df86b1dc67ce3b5a067dc9b47affca8caa08f41d1efa614cea56f526897" - "d61ded8ab01421f1", + ( + "c1301df86b1dc67ce3b5a067dc9b47affca8caa08f41d1efa614cea56f526897" + "d61ded8ab01421f1" + ), ), "shake_256": ( 40, - "20740b4c7a7997765e9cc254b44a1589e60849be0fe70b68a6fb732415edaa13" - "3bb6eb7825ffa531", + ( + "20740b4c7a7997765e9cc254b44a1589e60849be0fe70b68a6fb732415edaa13" + "3bb6eb7825ffa531" + ), ), } for algorithm, details in algorithms.items(): diff --git a/tests/testbed.py b/tests/testbed.py index 339e5cb..a281aaf 100644 --- a/tests/testbed.py +++ b/tests/testbed.py @@ -32,7 +32,7 @@ def run_tests(): # macOS, output the log sentinel multiple times to decrease the chance of # this happening. if sys.platform in {"darwin", "ios"}: - for _ in range(0, 6): + for _ in range(6): time.sleep(0.5) print(f">>>>>>>>>> EXIT {returncode} <<<<<<<<<<") else: From f454f0df4228cfc54413912f77649bbff3bba82f Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 3 Aug 2026 08:48:36 +0800 Subject: [PATCH 3/4] Move N999 module-naming ignores into their own block. --- pyproject.toml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 50a405e..a2c042e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -160,8 +160,6 @@ extend-select = [ ] [tool.ruff.lint.per-file-ignores] -# Ignores needed to pass the Ruff 0.16 update. -# Module names match platform names (iOS, macOS), which don't conform to -# standard module naming conventions. +# PEP8 module naming conventions aren't appropriate "tests/test_iOS.py" = ["N999"] "tests/test_macOS.py" = ["N999", "PLW1510"] From d45c69dd4b55ac6a1dbc4923c3213e42c4450213 Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 3 Aug 2026 08:56:49 +0800 Subject: [PATCH 4/4] Clean up one rule. --- pyproject.toml | 2 +- tests/test_macOS.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a2c042e..fc5b26c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -162,4 +162,4 @@ extend-select = [ [tool.ruff.lint.per-file-ignores] # PEP8 module naming conventions aren't appropriate "tests/test_iOS.py" = ["N999"] -"tests/test_macOS.py" = ["N999", "PLW1510"] +"tests/test_macOS.py" = ["N999"] diff --git a/tests/test_macOS.py b/tests/test_macOS.py index f5a6e12..2f70b1a 100644 --- a/tests/test_macOS.py +++ b/tests/test_macOS.py @@ -65,7 +65,7 @@ def test_posix_subprocess(): "Subprocesses can be invoked" import subprocess - result = subprocess.run(["uname", "-s"], capture_output=True) + result = subprocess.run(["uname", "-s"], capture_output=True, check=True) assert result.stdout == b"Darwin\n"