From ad1a5d5d9f07aed87c28e655134fec110cca0b01 Mon Sep 17 00:00:00 2001 From: Carlos Vigo Date: Thu, 25 Jun 2026 14:23:43 +0200 Subject: [PATCH] chore(ci): set ruff target-version to py314 Align ruff with requires-python >=3.14. The flake-sourced ruff-format (0.15.x) then applies PEP 758 to the py314 target, dropping the parentheses on multi-exception except clauses in tests/conftest.py and packages/vig-utils/tests/test_claude_ssot.py. Skip TDD: ruff lint/format configuration. Refs: #708 --- packages/vig-utils/tests/test_claude_ssot.py | 2 +- pyproject.toml | 4 ++-- tests/conftest.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/vig-utils/tests/test_claude_ssot.py b/packages/vig-utils/tests/test_claude_ssot.py index a85096f9..7aae6a29 100644 --- a/packages/vig-utils/tests/test_claude_ssot.py +++ b/packages/vig-utils/tests/test_claude_ssot.py @@ -50,7 +50,7 @@ def test_no_tracked_file_references_cursor_skills() -> None: path = REPO_ROOT / rel try: text = path.read_text(encoding="utf-8") - except (UnicodeDecodeError, FileNotFoundError): + except UnicodeDecodeError, FileNotFoundError: continue if ".cursor/skills/" in text: offenders.append(rel) diff --git a/pyproject.toml b/pyproject.toml index dc9b4fc7..d31a5376 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,8 +54,8 @@ vig-utils = { path = "packages/vig-utils", editable = true } # Black-compatible line length line-length = 88 -# Target Python 3.12 -target-version = "py312" +# Target Python 3.14 +target-version = "py314" [tool.ruff.lint] diff --git a/tests/conftest.py b/tests/conftest.py index 601fc6bb..f42f2935 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -169,7 +169,7 @@ def is_running_in_container() -> bool: try: with Path("/proc/1/cgroup").open() as f: return "docker" in f.read() or "podman" in f.read() - except (FileNotFoundError, PermissionError): + except FileNotFoundError, PermissionError: pass return False @@ -1006,7 +1006,7 @@ def devcontainer_with_sidecar(initialized_workspace, sidecar_image, container_ta parts = error_message.split("Command failed:") if len(parts) > 1: podman_command = parts[1].strip() - except (json.JSONDecodeError, KeyError): + except json.JSONDecodeError, KeyError: pass # Extract actual podman error from stderr