Skip to content

Lint: fix error-handling ruff findings in src/ (blind except, try/except/pass, subprocess check) #168

Done

Description

@vsn411

Problem: 14 ruff errors in src/ point at real error-handling gaps:

Rule Where What to do
BLE001 blind except Exception (5) src/secfoo/runner.py (3), docext.py, web/templating.py catch the specific exceptions, or keep the broad catch and log it with a one-line comment saying why
S110 try/except/pass (2) src/secfoo/runner.py log at debug level instead of swallowing silently
PLW1510 subprocess.run without check (4) src/secfoo/mcp.py (3), runner.py pass check=False explicitly; the code already checks returncode
PYI034 src/secfoo/storage/repository.py return Self
RUF046 src/secfoo/web/dashboard_common.py drop the redundant int()
EXE001 scripts/sync_design_system.py chmod +x, or remove the shebang

Done when: ruff check src scripts reports none of these rules, behaviour is unchanged (pytest tests passes), and each remaining broad except has a comment explaining why it stays.

Part of #114.

Activity

  1. added
    enhancement
    good first issue
    help wanted
    hackathon
    difficulty: low
    on Nov 20, 2026
  2. added a commit that references this issue on Nov 26, 2026
    5db1681
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty: lowenhancementgood first issuehackathonhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions