From f5e67dc3b92ca951e96c20f01d57ee1585690e8e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 16:36:57 +0000 Subject: [PATCH 1/2] chore(pre-commit): update crate-ci/typos to v1.26.0 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d89fb012f24..c0f7861b871 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -98,7 +98,7 @@ repos: - id: check-case-conflict - repo: https://github.com/crate-ci/typos - rev: v1.21.0 + rev: v1.26.0 hooks: - id: typos exclude: ^(CHANGELOG\.md|test/(test-cmd-list\.txt|fixtures/.+))$ From 0bdb788d29c951083172cb089af206e13e01ff99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 12 Oct 2024 11:18:18 +0300 Subject: [PATCH 2/2] test: work around false positive typos --- test/t/test_cppcheck.py | 8 ++++---- test/t/test_xgamma.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/t/test_cppcheck.py b/test/t/test_cppcheck.py index 73e64f5efa6..2cd81854e3e 100644 --- a/test/t/test_cppcheck.py +++ b/test/t/test_cppcheck.py @@ -22,10 +22,10 @@ def test_4(self, completion): def test_5(self, completion): assert completion == "l" - @pytest.mark.complete("cppcheck --enable=xx,styl") + @pytest.mark.complete("cppcheck --enable=xx,sty") def test_6(self, completion): - assert completion == "e" + assert completion == "le" - @pytest.mark.complete("cppcheck --enable=xx,yy,styl") + @pytest.mark.complete("cppcheck --enable=xx,yy,sty") def test_7(self, completion): - assert completion == "e" + assert completion == "le" diff --git a/test/t/test_xgamma.py b/test/t/test_xgamma.py index 151e2d36dac..b943cdac718 100644 --- a/test/t/test_xgamma.py +++ b/test/t/test_xgamma.py @@ -6,7 +6,7 @@ class TestXgamma: def test_1(self, completion): assert completion - @pytest.mark.complete("xgamma -gam", require_cmd=True) + @pytest.mark.complete("xgamma -gamm", require_cmd=True) def test_2(self, completion): - assert completion == "ma" + assert completion == "a" assert completion.endswith(" ")