From dadbfdcb2bf2666b3ae80caadddfae6574ad967a Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Wed, 21 May 2025 12:30:54 +0200 Subject: [PATCH] chore: :technologist: add typos as a pre-commit hook --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 09f0345..0ce5cc7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,3 +15,11 @@ repos: rev: v4.7.2 hooks: - id: commitizen + + # Use the mirror since the main `typos` repo has tags for different + # sub-packages, which confuses pre-commit when it tries to find the latest + # version + - repo: https://github.com/adhtruong/mirrors-typos + rev: v1.32.0 + hooks: + - id: typos