Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: move DevSkim ignore comments to same line as flagged code

LearningCircuit1e5ac5707743
diff --git a/tests/database/test_sqlcipher_integration.py b/tests/database/test_sqlcipher_integration.py
index 721ad514de..acb25b19b0 100644
--- a/tests/database/test_sqlcipher_integration.py
+++ b/tests/database/test_sqlcipher_integration.py
@@ -1199,7 +1199,7 @@ class TestSQLCipherIntegration:
valid_kdfs = [
"PBKDF2_HMAC_SHA512",
"PBKDF2_HMAC_SHA256",
- "PBKDF2_HMAC_SHA1",
+ "PBKDF2_HMAC_SHA1", # DevSkim: ignore DS126858
]
assert any(k in kdf_name for k in valid_kdfs), (
f"Unknown KDF algorithm: {kdf[0]}"
@@ -1224,7 +1224,11 @@ class TestSQLCipherIntegration:
hmac_name = str(hmac[0]).upper()
# Should be HMAC_SHA512, HMAC_SHA256, or HMAC_SHA1
# DevSkim: ignore DS126858 - Testing valid SQLCipher HMAC algorithms including legacy SHA1
- valid_hmacs = ["HMAC_SHA512", "HMAC_SHA256", "HMAC_SHA1"]
+ valid_hmacs = [
+ "HMAC_SHA512",
+ "HMAC_SHA256",
+ "HMAC_SHA1",
+ ] # DevSkim: ignore DS126858
assert any(h in hmac_name for h in valid_hmacs), (
f"Unknown HMAC algorithm: {hmac[0]}"
)
@@ -1263,9 +1267,7 @@ class TestSQLCipherIntegration:
# Different raw key should fail
# DevSkim: ignore DS173237 - Test dummy key, not a real secret
- wrong_key = (
- "1111111111111111111111111111111111111111111111111111111111111111"
- )
+ wrong_key = "1111111111111111111111111111111111111111111111111111111111111111" # DevSkim: ignore DS173237
conn = pysqlcipher3.connect(str(db_path))
cursor = conn.cursor()
cursor.execute(f"PRAGMA key = \"x'{wrong_key}'\"")
@@ -2041,7 +2043,7 @@ class TestSQLCipherIntegration:
kdf_algorithms = [
"PBKDF2_HMAC_SHA256",
"PBKDF2_HMAC_SHA512",
- "PBKDF2_HMAC_SHA1",
+ "PBKDF2_HMAC_SHA1", # DevSkim: ignore DS126858
]
for kdf in kdf_algorithms:
@@ -2087,7 +2089,7 @@ class TestSQLCipherIntegration:
hmac_algorithms = [
"HMAC_SHA256",
"HMAC_SHA512",
- "HMAC_SHA1",
+ "HMAC_SHA1", # DevSkim: ignore DS126858
]
for hmac_algo in hmac_algorithms: