[CI] Add lint/type-check job — `ruff check` currently fails on main
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 importsllmsql/inference/inference_api.py:155— B905zip()withoutstrict=
Proposal
- Add a
lintjob (ruff check,ruff format --check,mypy llmsql) to.github/workflows/tests.ymlor runpre-commit run --all-filesin 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@v4in docs.yml → v5).
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.