From 73f2554932b7a1b113346e12cfec976679537bcb Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Tue, 31 Jan 2023 00:42:29 +0100 Subject: [PATCH] Check typos via pre-commit So this runs more often (and also in CI). --- .pre-commit-config.yaml | 14 ++++++++++++++ Makefile | 2 -- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 71cf177..75a72e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,3 +26,17 @@ repos: rev: 'v0.0.237' hooks: - id: ruff + - repo: local + hooks: + - id: typos-syncroniz + name: typos-syncroniz + language: system + # Not how you spell "synchronise" + entry: sh -c "git grep -i syncroniz" + files: ".*/.*" + - id: typos-text-icalendar + name: typos-text-icalendar + language: system + # It's "text/calendar", no "i". + entry: sh -c "git grep -i 'text/icalendar'" + files: ".*/.*" diff --git a/Makefile b/Makefile index 19036f2..af86715 100644 --- a/Makefile +++ b/Makefile @@ -42,8 +42,6 @@ ci-test-storage: style: pre-commit run --all - ! git grep -i syncroniz */* - ! git grep -i 'text/icalendar' */* sphinx-build -W -b html ./docs/ ./docs/_build/html/ install-docs: