From 19b0221bdb9a738e49d956ff72f87cb011f48786 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 1 Aug 2026 05:08:04 +0000 Subject: [PATCH 1/2] build(deps-dev): bump ruff in the python-dependencies group Bumps the python-dependencies group with 1 update: [ruff](https://github.com/astral-sh/ruff). Updates `ruff` from 0.15.17 to 0.16.0 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](https://github.com/astral-sh/ruff/compare/0.15.17...0.16.0) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.16.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: python-dependencies ... Signed-off-by: dependabot[bot] --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 65e9eee..49dddbc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ dev = [ # Kept in lockstep with the pinned ruff-pre-commit hook (.pre-commit-config.yaml). # Pinned below 0.16: ruff 0.16 formats Python code blocks inside Markdown by # default, which would make `ruff format --check .` reformat README.md. - "ruff==0.15.17", + "ruff==0.16.0", "pre-commit>=3.7", "build>=1.2", "twine>=5", From 12198acb195901376881a1c442af85bbe8188b6b Mon Sep 17 00:00:00 2001 From: Anton Tuyakhov <7713205+tuyakhov@users.noreply.github.com> Date: Thu, 6 Aug 2026 08:24:50 +0000 Subject: [PATCH 2/2] build(lint): exclude Markdown from ruff formatter for ruff 0.16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ruff 0.16 formats Python code blocks inside Markdown files by default, so `ruff format --check .` started failing on README.md — it wanted to reflow the hand-aligned example snippets (aligned inline comments, a one-line list comprehension, etc.). The lint rules are pinned via `select`, so `ruff check` is unaffected; this was purely the formatter's new Markdown support. Scope the formatter to code by excluding `*.md`, preserving the docs exactly. `ruff check .` and `ruff format --check .` both pass on ruff 0.16.0. Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01E5ZYJUHAmibPyaKyKmQLSQ --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 49dddbc..2d95381 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -90,6 +90,11 @@ ignore_missing_imports = true line-length = 100 src = ["src", "tests"] +[tool.ruff.format] +# ruff 0.16 reformats Python code blocks inside Markdown by default; keep the +# hand-formatted README examples (aligned inline comments, etc.) untouched. +exclude = ["*.md"] + [tool.ruff.lint] select = ["E", "F", "I", "UP", "B"] ignore = ["B904", "UP007", "UP045", "UP035", "UP006"]