llmsql-benchmark icon indicating copy to clipboard operation
llmsql-benchmark copied to clipboard

[CI] Add lint/type-check job — `ruff check` currently fails on main

Open DzmitryPihulski opened this issue 1 month ago • 1 comments

Problem

Pre-commit hooks exist (.pre-commit-config.yaml) but CI only runs pytest. As a result main currently fails ruff check llmsql:

  • llmsql/_cli/llmsql_cli.py:1 — I001 unsorted imports
  • llmsql/inference/inference_api.py:155 — B905 zip() without strict=

Proposal

  • Add a lint job (ruff check, ruff format --check, mypy llmsql) to .github/workflows/tests.yml or run pre-commit run --all-files in CI.
  • Fix the existing violations.
  • Test on a Python matrix (3.10, 3.11, 3.12, 3.13) since requires-python = ">=3.10".
  • Bump outdated actions (actions/setup-python@v4 in docs.yml → v5).

DzmitryPihulski avatar Oct 04 '26 05:10 DzmitryPihulski

I'd like to work on this. Plan: fix the two open ruff check llmsql findings (I001 import order in llmsql/_cli/llmsql_cli.py, B905 zip() without strict= in llmsql/inference/inference_api.py), apply ruff format to the three files that currently fail ruff format --check (same ruff 0.8.4 as .pre-commit-config.yaml), and add a lint job to .github/workflows/tests.yml that runs ruff check and ruff format --check on the 3.10-3.13 matrix. I would leave mypy out of the required job for now: it reports pre-existing findings across the package that are outside this change, so it would turn CI red immediately - happy to do that as a follow-up if you want it in the same PR.

ddaihao2022 avatar Oct 19 '26 16:10 ddaihao2022