fix(lint): use plain comments for architecture validator codes
Some checks failed
CI / ruff (push) Failing after 7s
CI / pytest (push) Failing after 0s
CI / architecture (push) Failing after 8s
CI / dependency-scanning (push) Successful in 26s
CI / audit (push) Successful in 8s
CI / docs (push) Has been skipped

Replace # noqa: SVC-006 with # SVC-006 to avoid ruff warnings about
unknown codes. Updated architecture validators to match the new format
by checking for the code string directly instead of the noqa: prefix.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-12 23:24:57 +01:00
parent 3a264c0a39
commit 79c985ee39
28 changed files with 43 additions and 46 deletions

View File

@@ -61,7 +61,7 @@ class AuthService:
# Update last_login timestamp
user.last_login = datetime.now(UTC)
db.commit() # noqa: SVC-006 - Login must persist last_login timestamp
db.commit() # SVC-006 - Login must persist last_login timestamp
token_data = self.auth_manager.create_access_token(user)
@@ -176,7 +176,7 @@ class AuthService:
# Update last_login timestamp
user.last_login = datetime.now(UTC)
db.commit() # noqa: SVC-006 - Login must persist last_login timestamp
db.commit() # SVC-006 - Login must persist last_login timestamp
token_data = self.auth_manager.create_access_token(user)

View File

@@ -133,7 +133,7 @@ class PlatformSettingsService:
)
db.add(admin_setting)
db.commit() # noqa: SVC-006 - Setting change is atomic, commit is intentional
db.commit() # SVC-006 - Setting change is atomic, commit is intentional
db.refresh(admin_setting)
logger.info(f"Platform setting '{key}' set to '{value}' by user {user_id}")