From bdbdc89c73a9d53ad991f16d6e948c37abee3484 Mon Sep 17 00:00:00 2001 From: Chris Bachhuber Date: Wed, 29 Apr 2026 09:05:10 +0200 Subject: [PATCH 1/3] test ruby in pre-commit.ci --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a9ae795..0858c8d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,3 +47,7 @@ repos: - id: check-snake-case - id: check-no-dashes - id: check-non-existing-and-duplicate-excludes + - repo: https://github.com/mattlqx/pre-commit-search-and-replace + rev: v1.1.9 + hooks: + - id: search-and-replace From 40fe09bab228b4517fa19323ccd60201d97dea67 Mon Sep 17 00:00:00 2001 From: Chris Bachhuber Date: Wed, 29 Apr 2026 14:10:17 +0200 Subject: [PATCH 2/3] use rust-based hook --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0858c8d..a79df0b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -47,7 +47,7 @@ repos: - id: check-snake-case - id: check-no-dashes - id: check-non-existing-and-duplicate-excludes - - repo: https://github.com/mattlqx/pre-commit-search-and-replace - rev: v1.1.9 + - repo: https://github.com/cbachhuber/pre-commit-search-and-replace + rev: 4d445a3fbc6e823b977c3e1a9ba90555cc7aeebd hooks: - id: search-and-replace From e43cefb0501618884a8f39b86aff39efe7b0154c Mon Sep 17 00:00:00 2001 From: Chris Bachhuber Date: Wed, 29 Apr 2026 14:12:18 +0200 Subject: [PATCH 3/3] add search and replace config --- .pre-commit-search-and-replace.yaml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .pre-commit-search-and-replace.yaml diff --git a/.pre-commit-search-and-replace.yaml b/.pre-commit-search-and-replace.yaml new file mode 100644 index 0000000..cbcc0f8 --- /dev/null +++ b/.pre-commit-search-and-replace.yaml @@ -0,0 +1,6 @@ +- search: /Something [bB]ad/ + replacement: Something Good +- search: foobar + insensitive: true + replacement: FOOBAR +- search: JustFailIfThisStringIsFound