Skip to content

fix: resolve ruff lint findings in Redis ACL safety framework - #20

Merged
man4ish merged 1 commit into
mainfrom
security/redis-acl-safety-lint-fixes
Sep 18, 2026
Merged

man4ish merged 1 commit into
mainfrom
security/redis-acl-safety-lint-fixes

Conversation

@man4ish

@man4ish man4ish commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Follow-up to security: harden Redis ACL validation safety #19, which merged with a failing CI lint check (11 ruff findings, all style-only — no test or security failures; 86/86 focused tests and 475/475 broader suite passed then and now).
  • Fixes: redundant quoted type annotations (unnecessary under from __future__ import annotations), an unused import, __enter__'s return type as Self, explicit check=False on a test-helper subprocess.run, and correct noqa codes on the two intentionally-silent best-effort cleanup blocks.
  • No behavior change.

Test plan

  • ruff check scripts/redis_acl_safety.py tests/test_redis_acl_safety.py — all checks passed
  • pytest -q tests/test_redis_acl_safety.py — 86 passed, 0 failed
  • Full repository suite — 475 passed, 23 skipped, 0 failed

🤖 Generated with Claude Code

PR #19's CI failed on lint (ruff, changed-files-only scope), not on
tests -- 86/86 focused tests and 475/475 broader-suite tests passed
throughout. All 11 findings were style-only: redundant quotes on type
annotations now unnecessary under `from __future__ import annotations`,
an unused import left over from an earlier revision, `__enter__`'s
return type expressed as `Self`, explicit `check=False` on a
subprocess.run whose result is intentionally not checked, and correct
noqa codes (S110 + BLE001, not the placeholder BLE001-only comment
that shipped) on the two deliberately-silent best-effort cleanup
blocks. No behavior change.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@man4ish
man4ish merged commit 8d8597e into main Sep 18, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant