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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
12 changes: 8 additions & 4 deletions tests/test_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_macOS.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down
2 changes: 1 addition & 1 deletion tests/testbed.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down