From 5ac8a0f31864b6ee5185b3f07c94a877b590e7fb Mon Sep 17 00:00:00 2001 From: Randy Olson Date: Sun, 14 Jun 2026 21:37:28 -0700 Subject: [PATCH 1/2] chore: pin ruff to 0.15.11 across pre-commit and dev deps The dev dependency was a floor-only ruff>=0.6 while the pre-commit hook hard-pinned v0.6.9, so local tooling and CI resolved ruff versions almost a year apart. Pin both to 0.15.11 (a single source of truth) and record it in the lockfile. Co-Authored-By: Claude Opus 4.8 --- .pre-commit-config.yaml | 2 +- pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 376852a..b662114 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.9 + rev: v0.15.11 hooks: - id: ruff args: [--fix] diff --git a/pyproject.toml b/pyproject.toml index 5704418..99f4c65 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ dev = [ "pytest-asyncio>=0.23", "pytest-cov>=5.0", "respx>=0.21", - "ruff>=0.6", + "ruff==0.15.11", "pyright>=1.1.380", "pre-commit>=3.8", "types-pyyaml>=6.0", diff --git a/uv.lock b/uv.lock index 3aba07d..a6cadf1 100644 --- a/uv.lock +++ b/uv.lock @@ -221,7 +221,7 @@ dev = [ { name = "pytest-asyncio", specifier = ">=0.23" }, { name = "pytest-cov", specifier = ">=5.0" }, { name = "respx", specifier = ">=0.21" }, - { name = "ruff", specifier = ">=0.6" }, + { name = "ruff", specifier = "==0.15.11" }, { name = "types-pyyaml", specifier = ">=6.0" }, ] From 907e6bc8dc86c15825cc4be54891c90d14489ea6 Mon Sep 17 00:00:00 2001 From: Randy Olson Date: Sun, 14 Jun 2026 21:37:33 -0700 Subject: [PATCH 2/2] style: apply ruff 0.15 formatting and lint fixes repo-wide One-time alignment after pinning ruff to 0.15.11. The newer formatter relocates assertion messages; no behavior change. Co-Authored-By: Claude Opus 4.8 --- tests/test_sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_sync.py b/tests/test_sync.py index e69291a..c054001 100644 --- a/tests/test_sync.py +++ b/tests/test_sync.py @@ -161,9 +161,9 @@ def test_add_target_duplicate_path_raises_conflict() -> None: add_target(config, path="~/skills", preset=None, scope="all", only=[]) hint = exc_info.value.hint or "" assert "--only" in hint, "hint should mention --only" - assert ( - "edit the sync config by hand" not in hint - ), "hint must not say 'edit the sync config by hand'" + assert "edit the sync config by hand" not in hint, ( + "hint must not say 'edit the sync config by hand'" + ) def test_add_target_duplicate_detected_across_path_forms() -> None: