Skip to content

Commit 73f2554

Browse files
committed
Check typos via pre-commit
So this runs more often (and also in CI).
1 parent 627f574 commit 73f2554

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,17 @@ repos:
2626
rev: 'v0.0.237'
2727
hooks:
2828
- id: ruff
29+
- repo: local
30+
hooks:
31+
- id: typos-syncroniz
32+
name: typos-syncroniz
33+
language: system
34+
# Not how you spell "synchronise"
35+
entry: sh -c "git grep -i syncroniz"
36+
files: ".*/.*"
37+
- id: typos-text-icalendar
38+
name: typos-text-icalendar
39+
language: system
40+
# It's "text/calendar", no "i".
41+
entry: sh -c "git grep -i 'text/icalendar'"
42+
files: ".*/.*"

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ ci-test-storage:
4242

4343
style:
4444
pre-commit run --all
45-
! git grep -i syncroniz */*
46-
! git grep -i 'text/icalendar' */*
4745
sphinx-build -W -b html ./docs/ ./docs/_build/html/
4846

4947
install-docs:

0 commit comments

Comments
 (0)