Skip to content

Commit 20cc8de

Browse files
committed
Formatting
Signed-off-by: Vlad Gheorghiu <[email protected]>
1 parent d552e3a commit 20cc8de

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

examples/stfl_sig.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222

2323
# Create signer and verifier with sample signature mechanisms
2424
stfl_sigalg = "XMSS-SHA2_10_256"
25-
with StatefulSignature(stfl_sigalg) as signer, StatefulSignature(stfl_sigalg) as verifier:
25+
with (
26+
StatefulSignature(stfl_sigalg) as signer,
27+
StatefulSignature(stfl_sigalg) as verifier,
28+
):
2629
logger.info("Signature details:\n%s", pformat(signer.details))
2730

2831
# Signer generates its keypair

tests/test_sig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ def test_sig_with_ctx_support_detection() -> None:
5353
with Signature(alg_name) as sig:
5454
# Check Python attribute matches C API
5555
c_api_result = native().OQS_SIG_supports_ctx_str(sig.method_name)
56-
assert bool(sig.sig_with_ctx_support) == bool(c_api_result), ( # noqa: S101
56+
assert bool(sig.sig_with_ctx_support) == bool(c_api_result), (
5757
f"sig_with_ctx_support mismatch for {alg_name}"
58-
)
58+
) # noqa: S101
5959
# If not supported, sign_with_ctx_str should raise
6060
if not sig.sig_with_ctx_support:
6161
try:

tests/test_stfl_sig.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44

55
import oqs
66

7-
_skip_names = ["LMS_SHA256_H20_W8_H10_W8", "LMS_SHA256_H20_W8_H15_W8", "LMS_SHA256_H20_W8_H20_W8"]
7+
_skip_names = [
8+
"LMS_SHA256_H20_W8_H10_W8",
9+
"LMS_SHA256_H20_W8_H15_W8",
10+
"LMS_SHA256_H20_W8_H20_W8",
11+
]
812

913

1014
# Sigs for which unit testing is disabled

0 commit comments

Comments
 (0)