From 4ebb5dda5ee014155562c321879a266c5a8d9fad Mon Sep 17 00:00:00 2001 From: Gideon Date: Tue, 7 Apr 2026 15:37:36 +0200 Subject: [PATCH 1/3] style(ruff): enable preferred quoting in nested strings Committed via https://github.com/asottile/all-repos --- pyproject.toml | 1 + tests/bumpsync/pyproject.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 921a2e2..0e2cfa6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,7 @@ dev = [ [tool.ruff] format.preview = true +format.nested-string-quote-style = "preferred" lint.select = [ "ALL", "DTZ002", # Useful outside of timezones diff --git a/tests/bumpsync/pyproject.toml b/tests/bumpsync/pyproject.toml index 3a92885..6ea1287 100644 --- a/tests/bumpsync/pyproject.toml +++ b/tests/bumpsync/pyproject.toml @@ -47,6 +47,7 @@ dev = [ [tool.ruff] format.preview = true +format.nested-string-quote-style = "preferred" lint.select = [ "ALL" ] From 8e030cc724d31038fc573927b1469101926a70f3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 7 Apr 2026 13:38:02 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/pre_commit_hooks/docker_apt_renovate.py | 2 +- src/pre_commit_hooks/gha.py | 2 +- tests/test_all_test_files_are_used.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pre_commit_hooks/docker_apt_renovate.py b/src/pre_commit_hooks/docker_apt_renovate.py index 7e18546..5f3c54d 100644 --- a/src/pre_commit_hooks/docker_apt_renovate.py +++ b/src/pre_commit_hooks/docker_apt_renovate.py @@ -184,7 +184,7 @@ def from_docker_tag(cls, tag: str, *, logger: Logger) -> DebianRelease | None: f"{ f"or version number ('{release.numeric}') " if release.numeric - else '' + else "" }" f"instead.", ) diff --git a/src/pre_commit_hooks/gha.py b/src/pre_commit_hooks/gha.py index 00a73ce..e7ce03b 100644 --- a/src/pre_commit_hooks/gha.py +++ b/src/pre_commit_hooks/gha.py @@ -171,7 +171,7 @@ def get_full_version( logger.warn( f"Found multiple tags for commit {digest}: " - f"{', '.join(matching_tags)}; but all of them do not satisfy" + f"{", ".join(matching_tags)}; but all of them do not satisfy" ) return None diff --git a/tests/test_all_test_files_are_used.py b/tests/test_all_test_files_are_used.py index 181129d..5937d88 100644 --- a/tests/test_all_test_files_are_used.py +++ b/tests/test_all_test_files_are_used.py @@ -40,7 +40,7 @@ def test_all_test_files_are_used() -> None: weird_files = used_files & allow_unused_files if weird_files: pytest.fail( - f"files {', '.join(map(str, weird_files))} were assumed to not be used as input" + f"files {", ".join(map(str, weird_files))} were assumed to not be used as input" ) unused_files = set() @@ -52,7 +52,7 @@ def test_all_test_files_are_used() -> None: bad_files = unused_files - used_files - allow_unused_files if bad_files: pytest.fail( - f"files {', '.join(map(str, bad_files))} are not used in test parameters. " + f"files {", ".join(map(str, bad_files))} are not used in test parameters. " f"If these are output files, try adding a test verifying putting the output files back in " f"leaves them unchanged and returns exit code 0. (with TC.out_double)" ) From e3e1b4662916d938120754d182d3d9d7c8c40701 Mon Sep 17 00:00:00 2001 From: Gideon Date: Tue, 7 Apr 2026 15:39:23 +0200 Subject: [PATCH 3/3] c --- tests/bumpsync/pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/bumpsync/pyproject.toml b/tests/bumpsync/pyproject.toml index 6ea1287..3a92885 100644 --- a/tests/bumpsync/pyproject.toml +++ b/tests/bumpsync/pyproject.toml @@ -47,7 +47,6 @@ dev = [ [tool.ruff] format.preview = true -format.nested-string-quote-style = "preferred" lint.select = [ "ALL" ]