Skip to content

Commit

Permalink
ci(typos): add typos to .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Oct 23, 2023
1 parent 1d41ec3 commit 8057f21
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ repos:
src/lv_conf_internal.h
)
types_or: ["c", "header"]

repos:
- repo: https://github.com/crate-ci/typos
rev: v1.16.20
hooks:
- id: typos
26 changes: 26 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[files]
extend-exclude = [
".git/",
"docs/_static/css/fontawesome.min.css",
"docs/README_*",
"src/libs/",
]
ignore-hidden = false

[default]
extend-ignore-re = [
"\\bser[^a-z]",
"\\bfle[^a-z]",
'"Lorem ipsum .*"',
"Nam consectetur",
"U\\+[0-9A-F]{4}",
'\{ "[a-z]+", "[^ -~]+" \},',
"Rename lv_chart_clear_serie",
"rename LV_ROLLER_MODE_INIFINITE",
"CARD_INFO_SET\\(&img_multilang_avatar_.*\\)",
"ACI\\)",
]

[default.extend-words]
# https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6loca.html
"loca" = "loca"

0 comments on commit 8057f21

Please sign in to comment.