Skip to content

Commit d043d4a

Browse files
committed
Ruff fixes and ignores.
1 parent f810e5a commit d043d4a

3 files changed

Lines changed: 16 additions & 5 deletions

File tree

‎pyproject.toml‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,3 +158,10 @@ extend-select = [
158158
# use improvement.
159159
# "SIM", # flake8-simplify
160160
]
161+
162+
[tool.ruff.lint.per-file-ignores]
163+
# Ignores needed to pass the Ruff 0.16 update.
164+
# Module names match platform names (iOS, macOS), which don't conform to
165+
# standard module naming conventions.
166+
"tests/test_iOS.py" = ["N999"]
167+
"tests/test_macOS.py" = ["N999", "PLW1510"]

‎tests/test_common.py‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,13 +266,17 @@ def test_hashlib():
266266
),
267267
"shake_128": (
268268
40,
269-
"c1301df86b1dc67ce3b5a067dc9b47affca8caa08f41d1efa614cea56f526897"
270-
"d61ded8ab01421f1",
269+
(
270+
"c1301df86b1dc67ce3b5a067dc9b47affca8caa08f41d1efa614cea56f526897"
271+
"d61ded8ab01421f1"
272+
),
271273
),
272274
"shake_256": (
273275
40,
274-
"20740b4c7a7997765e9cc254b44a1589e60849be0fe70b68a6fb732415edaa13"
275-
"3bb6eb7825ffa531",
276+
(
277+
"20740b4c7a7997765e9cc254b44a1589e60849be0fe70b68a6fb732415edaa13"
278+
"3bb6eb7825ffa531"
279+
),
276280
),
277281
}
278282
for algorithm, details in algorithms.items():

‎tests/testbed.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def run_tests():
3232
# macOS, output the log sentinel multiple times to decrease the chance of
3333
# this happening.
3434
if sys.platform in {"darwin", "ios"}:
35-
for _ in range(0, 6):
35+
for _ in range(6):
3636
time.sleep(0.5)
3737
print(f">>>>>>>>>> EXIT {returncode} <<<<<<<<<<")
3838
else:

0 commit comments

Comments
 (0)