Skip to content

Commit e5288a1

Browse files
.pre-commit-config.yaml: Add the CSpell spell checker
Signed-off-by: Bernhard Kaindl <[email protected]>
1 parent 32078a8 commit e5288a1

File tree

4 files changed

+251
-3
lines changed

4 files changed

+251
-3
lines changed

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ __pycache__/
2828
# private vscode workspace settings:
2929
.vscode/settings.json
3030

31+
# Virtualenv
32+
.venv/
33+
3134
# temporary file from tests/test_cpio.py (to be fixed later)
3235
/data
3336
# Output from mypy --txt-report
3437
/index.txt
3538

36-
htmlcov/
37-
3839
# Pip editable install directory
3940
python_libs.egg-info/
4041

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,10 @@ repos:
164164
- id: mixed-line-ending
165165
args: ['--fix=lf']
166166
description: Replace line endings with LF
167+
168+
169+
# Run the CSpell command line spell checker
170+
- repo: https://github.com/streetsidesoftware/cspell-cli
171+
rev: v8.16.0
172+
hooks:
173+
- id: cspell

.vscode/ltex.dictionary.en-US.txt

+193-1
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,217 @@
1-
codecov
1+
abstractmethod
2+
accessorclass
3+
actrc
4+
addopts
5+
answerfile
6+
authhandler
7+
autolinks
8+
autouse
9+
binstr
10+
biosdevname
11+
booleaness
12+
bootdir
13+
builtins
14+
caplog
15+
CLOEXEC
16+
cmdline
17+
CodeCov
18+
configparser
219
covcombine
20+
covcp
21+
coveragerc
322
coverallsapp
423
cpio
524
cpiofile
625
cpioinfo
26+
crashkernel
27+
curstate
28+
datamodel
29+
deadsnakes
30+
dinfo
31+
diskutil
32+
distutils
33+
DOTQUAD
34+
drule
35+
dunder
36+
editenv
37+
eliloader
38+
ENOENT
39+
ENVLOGDIR
40+
errkey
41+
errmsg
42+
eths
743
euxv
44+
extlinux
45+
EXTLINUX
46+
faulthandler
47+
fcoe
48+
filehandle
49+
Filesyste
50+
FilesystemAccessor
51+
filterwarnings
52+
fstype
53+
ftpaccessor
54+
ftpserver
55+
getpid
56+
getpreferredencoding
57+
getuid
58+
grubdir
59+
grubenv
60+
hardlinks
61+
host-cpu-tune
62+
hpet
63+
httpaccessor
64+
httpserver
65+
hwdata
866
ibft
67+
icdiff
968
ifrename
69+
igmp
70+
inputtext
71+
intify
72+
isort
73+
keywrd
1074
kname
75+
koji
76+
kwargs
1177
lastboot
78+
laststate
79+
levelname
80+
lfile
81+
libc
82+
libexec
1283
linkname
84+
linktext
85+
localftpserver
1386
logbuf
87+
ltex
88+
lzma
1489
MACPCI
90+
markdownlint
91+
mboot
92+
mdreport
93+
Mellanox
94+
memoryhelper
95+
menuentry
96+
minidom
97+
mountingaccessor
98+
mountpoint
99+
multiboot
100+
mypy
101+
Navi
15102
nektos
103+
netdev
104+
netns
105+
newc
106+
newdefault
107+
newhw
108+
NEWNET
109+
nfspath
110+
nics
111+
nodelist
112+
nodocker
113+
nolvm
114+
noqueue
115+
norules
116+
oldstate
117+
ord
16118
organisation
119+
outerr
120+
outkey
121+
passman
122+
pathexists
123+
pciids
124+
pcis
125+
pcpus
126+
pipx
127+
Popen
128+
ppns
129+
precheck
130+
proc
131+
pvsproxy
132+
pycache
133+
pyenv
17134
pyfakefs
135+
pylance
136+
pyliblzma
137+
pylint
138+
Pylint
139+
pylintrc
140+
pylzma
18141
pyproject
142+
pyright
143+
pytest
144+
PYTHONDEVMODE
145+
pythonpath
19146
PYTHONWARNINGS
147+
pytype
148+
qdisc
149+
qlen
150+
Radeon
151+
rckey
152+
readbuffer
153+
readline
154+
repofiles
155+
REPOMD
156+
retcode
157+
retrans
20158
rulefile
159+
sbdf
160+
SBDF
161+
sbdfi
162+
setdefault
163+
setenv
164+
SETFD
165+
setuptools
166+
shellcheck
167+
signoff
168+
somestring
169+
sourcery
170+
srule
171+
strerror
172+
stringio
173+
subcls
174+
subdevice
175+
subvendor
176+
sysconfig
177+
tboot
178+
Tboot
179+
templatedir
180+
testfile
181+
testpaths
182+
textiowrapper
183+
timeo
184+
tmpfs
185+
tmultiboot
21186
tname
22187
tokenless
188+
Traceback
189+
treeinfo
190+
ucode
191+
ucontext
192+
uidmap
193+
urllib
194+
usecase
195+
usecases
196+
vcpus
197+
vcputune
198+
venv
199+
verhash
200+
vfat
201+
videoclass
23202
virtualenv
203+
virtualenvs
24204
virutalenv
205+
VPRO
25206
workdir
207+
xapi
208+
XAPI
209+
XCP-ng
210+
xcp-python-libs
211+
xcptestlib
212+
xelogging
213+
xenopsd
214+
XenServer
215+
xensource
216+
xmldoc
217+
xmlunwrap

cspell.json

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// http://cspell.org/docs/getting-started/#2-add-words-to-the-project-dictionary
2+
{
3+
"version": "0.2",
4+
"language": "en-GB,en-US",
5+
"dictionaryDefinitions": [
6+
{
7+
"name": "cspell-workspace-dictionary",
8+
"path": ".vscode/ltex.dictionary.en-US.txt",
9+
"addWords": true
10+
}
11+
],
12+
"dictionaries": ["cspell-workspace-dictionary"],
13+
"ignorePaths": [
14+
".actrc",
15+
".pylintrc",
16+
"Makefile",
17+
"pyproject.toml",
18+
"stubs/",
19+
"tests/xcptestlib_unshare.py",
20+
"tox.ini",
21+
"xcp/cpiofile.py",
22+
"xcp/net/ifrename/dynamic.py",
23+
"xcp/net/ifrename/logic.py",
24+
"xcp/net/ifrename/util.py",
25+
"xcp/net/ip.py",
26+
"xcp/repository.py",
27+
"xcp-python-libs.spec.in"
28+
],
29+
"ignoreRegExpList": [
30+
// exclude regular expressions from re.compile(pattern)
31+
"re.compile(.*)",
32+
// exclude MAC addresses
33+
"MAC(.*)"
34+
],
35+
"ignoreWords": [
36+
// In a log message, fix in final commit
37+
"Succesfully",
38+
// Volume label used in tests
39+
"vgdorj",
40+
// Unclear words in test method names
41+
"nosrules",
42+
"rshp",
43+
"siobuff",
44+
// Used to test an invalid quad
45+
"efgh",
46+
"ijkl"
47+
]
48+
}

0 commit comments

Comments
 (0)