diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6d89fa..e40c31d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,11 +19,13 @@ jobs: python-version: "3.12" cache: pip - name: install ruff - # Pin via pyproject's dev extra so local + CI run the same version. + # Keep this pin in sync with the dev extra in pyproject.toml so local + # + CI run the same version. Exact pin because ruff format output + # changes between releases and would break lint on untouched files. # No need to install the full dev tree (docling, reportlab) just to lint. run: | python -m pip install --upgrade pip - pip install "ruff>=0.6" + pip install "ruff==0.16.2" - name: ruff check run: ruff check . - name: ruff format --check diff --git a/pyproject.toml b/pyproject.toml index 8b86ce1..60f71f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,10 @@ dev = [ "docling-core>=2.50,<3", "pyyaml>=6.0", "reportlab>=4.0", - "ruff>=0.6", + # Exact pin: ruff format output changes between releases (0.16 started + # formatting markdown code blocks), so a range lets a new ruff release + # break lint on untouched files. CI installs this same pin. + "ruff==0.16.2", "build>=1.0", "twine>=5.0", "pre-commit>=3.0",