-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypos.toml
More file actions
56 lines (46 loc) · 1.46 KB
/
typos.toml
File metadata and controls
56 lines (46 loc) · 1.46 KB
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
# SPDX-FileCopyrightText: ONNX Project Contributors
#
# SPDX-License-Identifier: Apache-2.0
[default.extend-words]
ND = "ND"
ONNX = "ONNX"
"np.arange" = "np.arange"
CNA = "CNA" # Cloud Native Association
writeable = "writeable"
[default]
extend-ignore-re = [
"np\\.arange",
# Ignore lines that end with a `typos: ignore` comment
"(?Rm)^.*(#|//)\\s*typos:\\s*ignore$",
# Ignore lines that end with a `reviewdog:ignore[misspell]` comment
"(?Rm)^.*(#|//)\\s*reviewdog:ignore\\[misspell\\]",
]
# The following sets up some additional ignores for specific files.
# typos does not offer a good option to configur per-file rules.
# The following works by glob-matching on the file name which is less
# precise but seems good enough.
[type.op_roi_align_py]
extend-glob = ["op_roi_align.py"]
extend-words = { iy = "iy" }
[type.group_normalization_20_21_h]
extend-glob = ["group_normalization_20_21.h"]
extend-words = { kend = "kend" }
[type.doc_strings_cc]
extend-glob = ["doc_strings.cc"]
extend-words = { ot = "ot" }
[type.old_cc]
extend-glob = ["old.cc"]
extend-words = { ot = "ot" }
[type.operators_md]
extend-glob = ["Operators.md"]
extend-words = { ot = "ot" }
[type.op_conv_py]
extend-glob = ["op_conv.py"]
extend-words = { iz = "iz" }
[type.changelog_md]
extend-glob = ["Changelog.md"]
extend-words = { ot = "ot" }
extend-ignore-re = ["foward\\)"] # typo in published spec
[type.lint_yml]
extend-glob = ["lint.yml"]
extend-ignore-re = ["foward,"] # typo in published spec