You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
pip install -e ".[dev]" (installs the ruff version CI uses).
ruff check . --fix. Don't use --unsafe-fixes.
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
RajvanshSingh4 commentedon Nov 24, 2026
/assign
chore(lint): finish secfoo-com#165's safe autofixes (import order, un…
chore(lint): apply ruff's safe autofixes (Optional[X], __all__ order,…