-
Notifications
You must be signed in to change notification settings - Fork 721
Expand file tree
/
Copy path.typos.toml
More file actions
188 lines (170 loc) · 4.71 KB
/
.typos.toml
File metadata and controls
188 lines (170 loc) · 4.71 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
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
# https://github.com/crate-ci/typos
# install: cargo install typos-cli
# run: typos
[files]
extend-exclude = [
".typos.toml",
"*.snap",
"crates/viewer/re_ui/src/design_tokens.rs",
"examples/assets",
"rerun_cpp/src/rerun/archetypes/image.hpp", # TODO(emilk): remove once we remove from_greyscale8
"rerun_cpp/src/rerun/archetypes/image_ext.cpp", # TODO(emilk): remove once we remove from_greyscale8
"rerun_cpp/src/rerun/third_party/cxxopts.hpp",
"*.png",
"*.mp4",
"*.rrd",
]
[default.extend-words]
FUL = "FUL" # forward-up-left coordinate system
Isse = "Isse" # It's a name
lod = "lod" # level-of-detail
ND = "ND" # np.NDArray
opf = "opf" # Open Photogrammetry Format (OPF) file
somes = "somes" # many `Some`
teh = "teh" # part of @teh-cmc
trak = "trak" # mp4 crate spelling
typ = "typ" # We cannot write "type" in rust
writeable = "writeable" # NumPy's attribute is `ndarray.flags.writeable`, not `writable`
ws = "ws" # web-sockets, as in "ws://…"
Yoh = "Yoh" # Part of @YohDeadfall
# Use the more common spelling
adaptor = "adapter"
adaptors = "adapters"
# For consistency we prefer American English:
aeroplane = "airplane"
analogue = "analog"
analyse = "analyze"
appetiser = "appetizer"
arbour = "arbor"
armour = "armor"
artefact = "artifact"
authorise = "authorize"
behaviour = "behavior"
calibre = "caliber"
#cancelled = "canceled" # allow 'cancelled' since Arrow uses it.
candour = "candor"
capitalise = "capitalize"
catalogue = "catalog"
centre = "center"
characterise = "characterize"
chequerboard = "checkerboard"
chequered = "checkered"
civilise = "civilize"
clamour = "clamor"
colonise = "colonize"
colour = "color"
coloured = "colored"
cosy = "cozy"
criticise = "criticize"
defence = "defense"
demeanour = "demeanor"
dialogue = "dialog"
distil = "distill"
doughnut = "donut"
dramatise = "dramatize"
draught = "draft"
emphasise = "emphasize"
endeavour = "endeavor"
enrol = "enroll"
epilogue = "epilog"
equalise = "equalize"
favour = "favor"
favourite = "favorite"
fibre = "fiber"
flavour = "flavor"
fulfil = "fufill"
gaol = "jail"
grey = "gray"
greys = "grays"
greyscale = "grayscale"
harbour = "habor"
honour = "honor"
humour = "humor"
instalment = "installment"
instil = "instill"
jewellery = "jewelry"
kerb = "curb"
labour = "labor"
litre = "liter"
lustre = "luster"
meagre = "meager"
metre = "meter"
mobilise = "mobilize"
monologue = "monolog"
naturalise = "naturalize"
neighbour = "neighbor"
neighbourhood = "neighborhood"
normalise = "normalize"
normalised = "normalized"
odour = "odor"
offence = "offense"
organise = "organize"
parlour = "parlor"
plough = "plow"
popularise = "popularize"
pretence = "pretense"
programme = "program"
prologue = "prolog"
rancour = "rancor"
realise = "realize"
recognise = "recognize"
recognised = "recognized"
rigour = "rigor"
rumour = "rumor"
sabre = "saber"
satirise = "satirize"
saviour = "savior"
savour = "savor"
sceptical = "skeptical"
sceptre = "scepter"
sepulchre = "sepulcher"
serialisation = "serialization"
serialise = "serialize"
serialised = "serialized"
skilful = "skillful"
sombre = "somber"
specialisation = "specialization"
specialise = "specialize"
specialised = "specialized"
splendour = "splendor"
standardise = "standardize"
sulphur = "sulfur"
symbolise = "symbolize"
theatre = "theater"
tonne = "ton"
travelogue = "travelog"
tumour = "tumor"
valour = "valor"
vaporise = "vaporize"
vigour = "vigor"
# End of American English section
# null-terminated is the name of the wikipedia article!
# https://en.wikipedia.org/wiki/Null-terminated_string
nullterminated = "null-terminated"
zeroterminated = "null-terminated"
zero-terminated = "null-terminated"
[default]
extend-ignore-re = [
# Work around for typos inside of hashes. These show up inside of ipynb.
# e.g. "f4e1caf9" -> `caf` should be `calf`
# Specifically limit ourselves to exactly 8 chars in a quoted string, or
# 16 character hashses following a leading underscore.
# Just don't spell "defaced" wrong.
"\"[a-f0-9]{8}\"",
"_[a-f0-9]{16}",
"np.arange", # Stands for "array range" and isn't a misspelling of "arrange".
"phc_[a-zA-Z0-9]*", # Posthog public key
"PNG.?", # Workaround for https://github.com/crate-ci/typos/issues/967
"_LEVL_", # Used in air_traffic_data.py
"thrEEone", # Used in a test
"notify_seeked", # Used in the `mcap` crate.
# There's a crate with this name.
"cros_codecs",
"cros-codecs",
"Secur32", # Referring to `Secur32.dll` on Windows.
"muh_scalars", # Weird name introduced in `crates/viewer/re_view_time_series/tests/basic.rs` introduced in https://github.com/rerun-io/rerun/pull/10713
"isse", # Name
"@[a-zA-Z]+", # GitHub user names
"\\[[a-f0-9]{7}\\]\\(https://github\\.com/rerun-io/rerun/commit/", # Commit SHA links in changelog
"SELECTed", # Past tense of SQL SELECT
]