From 20535eb9632ca158ff30336b000a81b4795a541b Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 20 May 2026 18:46:59 -0400 Subject: [PATCH] fix(fc3b): ruff I001 (blank-line) + F841 (unused crypto binding) Co-Authored-By: Claude Opus 4.7 (1M context) --- backend/app/__init__.py | 1 - tests/test_credential_crypto.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/app/__init__.py b/backend/app/__init__.py index b333d46..a566a62 100644 --- a/backend/app/__init__.py +++ b/backend/app/__init__.py @@ -10,7 +10,6 @@ from .config import get_config from .frontend import frontend_bp from .services.credential_crypto import CredentialCrypto - _CREDENTIAL_KEY_PATH = Path("/images/secrets/credential_key.b64") diff --git a/tests/test_credential_crypto.py b/tests/test_credential_crypto.py index 5604ac3..199b838 100644 --- a/tests/test_credential_crypto.py +++ b/tests/test_credential_crypto.py @@ -9,13 +9,12 @@ from backend.app.services.credential_crypto import ( InvalidCredentialBlob, ) - pytestmark = pytest.mark.integration def test_load_or_create_writes_key_with_mode_0600(tmp_path): key_path = tmp_path / "secrets" / "credential_key.b64" - crypto = CredentialCrypto(key_path) + CredentialCrypto(key_path) assert key_path.exists() mode = stat.S_IMODE(os.stat(key_path).st_mode) assert mode == 0o600