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 diff --git a/pyproject.toml b/pyproject.toml index bbf8cfc..fc5b26c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -158,3 +158,8 @@ extend-select = [ # use improvement. # "SIM", # flake8-simplify ] + +[tool.ruff.lint.per-file-ignores] +# PEP8 module naming conventions aren't appropriate +"tests/test_iOS.py" = ["N999"] +"tests/test_macOS.py" = ["N999"] 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/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" 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: