From 12044ce06aac4603cefd5d52c114086c872c23e7 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Mon, 3 Aug 2026 13:41:50 +0300 Subject: [PATCH] fix(lint): restore lint-ci under ruff 0.16 Two independent breaks, both from ruff 0.16 landing via the unpinned `uv lock --upgrade` in `just install`: - The formatter now formats Python code blocks inside Markdown. It wanted to collapse an elided stub in the extract-accept-version-parse design doc; applied as-is, so doc snippets stay canonically formatted. - CPY001 (flake8-copyright) stabilized and `select = ["ALL"]` picked it up, failing all 10 Python files. Ignored: copyright lives in the root LICENSE, not in per-file headers. Only the first surfaced in the scheduled run, since `lint-ci` aborts at `ruff format --check` before reaching `ruff check`. Closes #23 Co-Authored-By: Claude Opus 5 --- .../2026-07-04.01-extract-accept-version-parse/design.md | 3 +-- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/planning/changes/2026-07-04.01-extract-accept-version-parse/design.md b/planning/changes/2026-07-04.01-extract-accept-version-parse/design.md index 8d2034a..e54a157 100644 --- a/planning/changes/2026-07-04.01-extract-accept-version-parse/design.md +++ b/planning/changes/2026-07-04.01-extract-accept-version-parse/design.md @@ -92,8 +92,7 @@ def get_accept_header_from_scope(scope: types.Scope) -> str: return headers.get("Accept", "").strip().lower() -def parse_accept_version(accept_header: str, vendor_media_type: str) -> AcceptVersion: - ... +def parse_accept_version(accept_header: str, vendor_media_type: str) -> AcceptVersion: ... ``` `parse_accept_version` owns steps 3-7 of today's middleware, in order, diff --git a/pyproject.toml b/pyproject.toml index 080ff56..181e646 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,6 +66,7 @@ select = ["ALL"] ignore = [ "D1", # allow missing docstrings "S101", # allow asserts + "CPY001", # copyright lives in LICENSE, not per-file headers "TCH", # ignore flake8-type-checking "FBT", # allow boolean args "D203", # "one-blank-line-before-class" conflicting with D211