Skip to content

chore: clean up ruff findings from #23 / #24 / #25#26

Merged
ancongui merged 2 commits into
mainfrom
chore/ruff-lint-cleanup-from-recent-prs
May 19, 2026
Merged

chore: clean up ruff findings from #23 / #24 / #25#26
ancongui merged 2 commits into
mainfrom
chore/ruff-lint-cleanup-from-recent-prs

Conversation

@ancongui
Copy link
Copy Markdown
Contributor

Summary

The Lint check failed on all three of the recent concurrency / SDK PRs (#23, #24, #25) and the merges weren't gated on it, so main was carrying 11 ruff findings. This PR clears them.

Code Count Files
F401 unused import 4 reaper sources + 2 test files
I001 import ordering 2 2 test files
SIM105 try/except/passcontextlib.suppress 2 both reapers
UP041 asyncio.TimeoutError → builtin TimeoutError 2 both reapers
F841 unused local 1 EDA advisory lock test

8 auto-fixed by ruff --fix, 3 manual (the SIM105 rewrites + F841 cleanup).

Verification

  • ruff check . clean.
  • Full unit + integration suite: 311 passed, 2 skipped (the two skipped are LLM smoke tests that need real provider keys).
  • No behaviour change — pure lint cleanup.

ancongui added 2 commits May 19, 2026 12:55
The Lint check failed on all three merged PRs because the new files
tripped ``F401`` (unused ``typing.Any``), ``SIM105`` (replace
``try``/``except``/``pass`` with ``contextlib.suppress``), ``UP041``
(replace ``asyncio.TimeoutError`` with builtin ``TimeoutError``),
``I001`` (import ordering), and ``F841`` (unused local).

The other CI jobs (Unit tests, SDK Python, SDK Java, Typecheck, Docling)
were all green on each PR; the merges weren't gated on Lint. This is
the follow-up sweep so ``ruff check`` is clean on ``main``.

11 errors fixed (8 auto-fixed by ``ruff --fix``, 3 manual).
The Lint job runs both ``ruff check`` and ``ruff format --check``.
The previous commit cleared the ``check`` half; this one runs
``ruff format`` over the 8 files in the same change set so the
formatter half passes too.

No behaviour change.
@ancongui ancongui merged commit 785da1a into main May 19, 2026
8 checks passed
@ancongui ancongui deleted the chore/ruff-lint-cleanup-from-recent-prs branch May 19, 2026 11:11
ancongui added a commit that referenced this pull request May 31, 2026
* chore: clean up ruff findings introduced by #23 / #24 / #25

The Lint check failed on all three merged PRs because the new files
tripped ``F401`` (unused ``typing.Any``), ``SIM105`` (replace
``try``/``except``/``pass`` with ``contextlib.suppress``), ``UP041``
(replace ``asyncio.TimeoutError`` with builtin ``TimeoutError``),
``I001`` (import ordering), and ``F841`` (unused local).

The other CI jobs (Unit tests, SDK Python, SDK Java, Typecheck, Docling)
were all green on each PR; the merges weren't gated on Lint. This is
the follow-up sweep so ``ruff check`` is clean on ``main``.

11 errors fixed (8 auto-fixed by ``ruff --fix``, 3 manual).

* chore: apply ``ruff format`` to the same files

The Lint job runs both ``ruff check`` and ``ruff format --check``.
The previous commit cleared the ``check`` half; this one runs
``ruff format`` over the 8 files in the same change set so the
formatter half passes too.

No behaviour change.

---------

Co-authored-by: ancongui <andres.contreras@soon.es>
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