Skip to content

Lint: apply ruff's safe autofixes (98 errors: Optional[X], import order, unused noqa) #165

Done

Description

@vsn411

Problem: ruff check . reports 146 errors on main, so CI runs it with || true and lint never blocks (#114). 98 of them have safe automatic fixes: UP045 (Optional[X] to X | None, 60), I001 (import order, 20), RUF100 (unused noqa, 7), FURB167 (regex flag aliases, 5), RUF022 (__all__ order, 3), UP037, FURB188 and F401 (1 each).

Build:

  1. pip install -e ".[dev]" (installs the ruff version CI uses).
  2. ruff check . --fix. Don't use --unsafe-fixes.
  3. Review the diff. It should change only annotations, import order, noqa comments and the few one-line rewrites listed above.

Where to look: mostly src/secfoo/cli.py, src/secfoo/web/, src/secfoo/storage/ and tests/. Running ruff shows the exact lines.

Done when: ruff check . --statistics lists none of the rules above, pytest tests passes, and the PR contains no other changes. Other lint issues cover the remaining rules, so leave those alone.

Part of #114. This touches many files, so rebase just before you ask for review.

Activity

  1. added
    enhancement
    good first issue
    help wanted
    hackathon
    difficulty: low
    on Nov 20, 2026
  2. RajvanshSingh4 commented on Nov 24, 2026

    @RajvanshSingh4

    /assign

  3. added a commit that references this issue on Nov 26, 2026
  4. added a commit that references this issue on Nov 26, 2026
    6f37e7e
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