Skip to content

Commit dc14cab

Browse files
authored
Merge pull request #168 from peternewman/travis-fixes
Improve the codespell regex and fix the typos it found
2 parents 09246d5 + e2fcf1e commit dc14cab

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.travis-ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ elif [[ $TASK = 'codespell' ]]; then
4242
-wholename "./node_modules/*" \
4343
\) | xargs)
4444
# count the number of codespell errors
45-
spellingerrors=$(zrun codespell --check-filenames --quiet 2 --regex "[\\-'a-zA-Z0-9]+" --exclude-file .codespellignore $spellingfiles 2>&1 | wc -l)
45+
spellingerrors=$(zrun codespell --check-filenames --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore $spellingfiles 2>&1 | wc -l)
4646
if [[ $spellingerrors -ne 0 ]]; then
4747
# print the output for info
48-
zrun codespell --check-filenames --quiet 2 --regex "[\\-'a-zA-Z0-9]+" --exclude-file .codespellignore $spellingfiles
48+
zrun codespell --check-filenames --quiet 2 --regex "[a-zA-Z0-9][\\-'a-zA-Z0-9]+[a-zA-Z0-9]" --exclude-file .codespellignore $spellingfiles
4949
echo "Found $spellingerrors spelling errors via codespell"
5050
exit 1;
5151
else

data/pid_data.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,15 +1209,15 @@
12091209
'type': 'uint8',
12101210
'labels': [(0, 'Single Fixture'),
12111211
(1, 'Master Fixture'),
1212-
(2, 'Syncronized fixture')],
1212+
(2, 'Synchronized fixture')],
12131213
}]},
12141214
'get_sub_device_range': 0,
12151215
'name': 'SYNCHRONIZED',
1216-
'set_request': {'items': [{'name': 'sycronization_mode',
1216+
'set_request': {'items': [{'name': 'synchronization_mode',
12171217
'type': 'uint8',
12181218
'labels': [(0, 'Single Fixture'),
12191219
(1, 'Master Fixture'),
1220-
(2, 'Syncronized fixture')],
1220+
(2, 'Synchronized fixture')],
12211221
}]},
12221222
'set_response': {'items': []},
12231223
'set_sub_device_range': 0,
@@ -4681,7 +4681,7 @@
46814681
(0x0002, 'Metal Halide Lamp'),
46824682
(0x0003, 'Incandescent Lamp'),
46834683
(0x0004, 'LED'),
4684-
(0x0005, 'Fluroescent'),
4684+
(0x0005, 'Fluorescent'),
46854685
(0x0006, 'Cold Cathode'),
46864686
(0x0007, 'Electro-luminescent'),
46874687
(0x0008, 'Laser'),
@@ -4742,7 +4742,7 @@
47424742
(0x0602, 'DMX512 Merger'),
47434743
(0x0603, 'Data Patch'),
47444744
(0x0604, 'Wireless link'),
4745-
(0x0701, 'Protocol Convertor'),
4745+
(0x0701, 'Protocol Converter'),
47464746
(0x0702, 'DMX512 to DC Voltage'),
47474747
(0x0703, 'DC Voltage to DMX512'),
47484748
(0x0704, 'Switch Panel'),

0 commit comments

Comments
 (0)