Check typos via pre-commit

So this runs more often (and also in CI).
This commit is contained in:
Hugo Osvaldo Barrera 2023-01-31 00:42:29 +01:00 committed by Hugo
parent 627f574777
commit 73f2554932
2 changed files with 14 additions and 2 deletions

View file

@ -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: ".*/.*"

View file

@ -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: