Skip to content

fix(compliance): F541 f-strings + hook executable + browser routes + nginx (#1116, #1086, #1120, #1122) - #1126

Merged
mrveiss merged 2 commits into
Dev_new_guifrom
fix/1116-f541
Feb 22, 2026
Merged

mrveiss merged 2 commits into
Dev_new_guifrom
fix/1116-f541

Conversation

@mrveiss

@mrveiss mrveiss commented Feb 22, 2026

Copy link
Copy Markdown
Owner

Summary

Four issues fixed across sessions on this branch:

#1116 — F541 f-strings without placeholders (performance_analyzer.py)

  • Removed f prefix from 9 f-strings with no {...} placeholders
    • suggestion= in _check_async_violations
    • 4 "description" values in _classify_performance_issue
    • 4 print() section headers in __main__ block
  • vue_quality_tool.py violations already fixed in commit 3ba2abf (Bug: 112 open() calls missing encoding='utf-8' #1085)

#1086 — pre-commit-no-direct-redis hook executable bit

  • Set git index mode 100644 → 100755 so hook runs after checkout

#1120 — SLM browser API routes for BrowserTool

  • Add api/browser.py with proxy endpoints to browser worker (172.16.168.25:3000)
  • Register browser_router in api/__init__.py and main.py

#1122 — nginx sites-enabled non-symlink fix

  • Add stat + conditional removal before symlink creation in slm_manager/tasks/main.yml

Test Plan

  • No F541 violations remain in performance_analyzer.py
  • pre-commit-no-direct-redis is executable (mode 755)
  • All pre-commit hooks pass

Closes #1116
Closes #1086
Closes #1120
Closes #1122

🤖 Generated with Claude Code

mrveiss and others added 2 commits February 22, 2026 14:52
- Add api/browser.py with proxy endpoints to browser worker (172.16.168.25:3000)
- Register browser_router in api/__init__.py and main.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add stat + conditional removal task before the symlink creation
so idempotency is preserved when sites-enabled contains a plain file
instead of a symlink. Add become: yes to symlink task.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@mrveiss
mrveiss merged commit 6b912bc into Dev_new_gui Feb 22, 2026
0 of 10 checks passed
@mrveiss
mrveiss deleted the fix/1116-f541 branch February 22, 2026 13:02
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