-
Notifications
You must be signed in to change notification settings - Fork 0
/
.typos.toml
81 lines (68 loc) · 2.1 KB
/
.typos.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
### Configuration for typos pre-commit
# https://github.com/crate-ci/typos/blob/master/docs/reference.md
[files]
# glob/gitignore-style file exclusions
extend-exclude = [
# need to include typos configs in templates/ as well
"*.typos.toml*",
"*_typos.toml*",
"*typos.toml*",
"*.git*",
]
ignore-hidden = false # ignore hidden files/dirs
ignore-files = true # respect ignore files
ignore-dot = true # respect .ignore files
ignore-vcs = true # ignore version-control directories
ignore-global = true # respect global ignore files
[default]
binary = false
check-filename = true
check-file = true
unicode = true
ignore-hex = true
identifier-leading-digits = false
locale = "en"
## Custom uncorrectable sections (e.g. markdown code fences, PGP signatures, etc)
## list of regexes
extend-ignore-re = [
# Line ignore with trailing "typos:disable"
"(?Rm)^.*(#|//)\\s*typos:disable$",
# Block ignore with "typos:off"||"typos:on"
"(?s)(#|//)\\s*typos:off.*?\\n\\s*(#|//)\\s*typos:on",
]
## Pattern-match always-valid identifiers
## list of regexes
extend-ignore-identifiers-re = []
## Corrections for identifiers (https://www.unicode.org/reports/tr31/#Table_Lexical_Classes_for_Identifiers).
## When the correction is blank, the identifier is *never* valid.
## When the correction is the key, the identifier is *always* valid.
[default.extend-identifiers]
# capwords are identifiers
AKS = "AKS"
## Corrections for words.
## When the correction is blank, the word is *never* valid.
## When the correction is the key, the word is *always* valid.
[default.extend-words]
"arange" = "arange" # e.g. `numpy.arange`
keypair = "keypair"
## Specific rules for lockfiles
[type.lock]
extend-glob = []
binary = false
check-filename = true
check-file = false
unicode = true
ignore-hex = true
identifier-leading-digits = false
extend-ignore-identifiers-re = []
extend-ignore-re = []
[type.lock.extend-identifiers]
[type.lock.extend-words]
## Specific rules for python
[type.py]
extend-glob = []
extend-ignore-identifiers-re = []
extend-ignore-re = []
[type.py.extend-identifiers]
NDArray = "NDArray"
[type.py.extend-words]