Skip to content

Commit 8002ed8

Browse files
Prepare the v0.12.0 release (#718)
* Prepare the v0.12.0 release, spellchecking is now performed before the mkdocs deployment * Update cspell configuration to match that used in the pynx plugins and adding words so far missing --------- Co-authored-by: mkuehbach <markus.kuehbach@physik.hu-berlin.de>
1 parent 5fc9d0a commit 8002ed8

File tree

6 files changed

+118
-103
lines changed

6 files changed

+118
-103
lines changed

.cspell/custom-dictionary.txt

Lines changed: 83 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,119 +1,112 @@
11
# Custom Dictionary Words
2-
3-
## NeXus related words
2+
ARPES
43
AXISNAME
5-
namefitting
6-
NIAC
7-
NXDL
8-
9-
## LateX, XML
10-
11-
# Words related to experimental techniques
12-
13-
# Software
4+
Aeschlimann
145
BASECLASS
15-
caplog
16-
cnxvalidate
17-
dataconverter
18-
DECTRIS
19-
electronanalyzer
20-
ELECTRONANALYZER
21-
ellipsometry
22-
GROUPNAME
23-
infty
24-
libiconv
25-
loadgroup
26-
mainfile
27-
Metainfo
28-
MSYS
29-
nexpy
30-
nexusformat
31-
nxdls
32-
PATHCONV
33-
pathtovalidate
34-
posint
35-
punx
36-
pynxtools
37-
xarrays
38-
xdist
39-
Zenodo
40-
41-
# examples
42-
alphabetagamma
43-
appdefdir
44-
CSET
45-
ellips
46-
FAIRMAT
47-
filemanager
48-
fxcef
49-
hildebrandt
50-
hixu
51-
infile
52-
kfra
53-
libhdf
54-
mydata
55-
mydatareader
56-
mynxdl
57-
nexusvalidate
58-
nexusvalidation
59-
NULLTERM
60-
otherfile
61-
physik
62-
STRPAD
63-
STRSIZE
64-
xfbaa
65-
66-
# related to experimental techniques
67-
arpes
68-
ARPES
696
Bluesky
70-
emittance
71-
flatfield
72-
fluence
73-
mbar
74-
monochromator
75-
monoclinic
76-
MPES
77-
Raman
78-
setpoint
79-
xraylens
80-
81-
# Names
827
Brockhauser
838
Brückner
9+
CSET
10+
Carola
11+
DECTRIS
8412
Dobener
8513
Draxl
14+
ELECTRONANALYZER
15+
Emminger
16+
FAIRMAT
8617
Fekete
18+
Florian
8719
Forschungsgemeinschaft
20+
GROUPNAME
8821
Ginzburg
22+
Grundmann
8923
Haraszti
24+
Heiko
25+
Hetaba
9026
José
9127
Kühbach
28+
Laurenz
9229
Lukas
93-
lukaspie
30+
MPES
31+
MSYS
9432
Maier
9533
Markus
96-
Márquez
97-
mkuehbach
34+
Metainfo
9835
Mozumder
36+
Márquez
9937
NFDI
38+
NIAC
39+
NULLTERM
40+
NXDL
41+
PATHCONV
10042
Pielsticker
43+
Pincelli
44+
Prieto
45+
Raman
10146
Rettig
47+
STRPAD
48+
STRSIZE
49+
Sandor
10250
Scheidgen
10351
Shabih
10452
Sherjeel
105-
sherjeelshabih
106-
tommaso
107-
108-
# other languages
109-
110-
# en-UK
53+
Walid
54+
Zenodo
55+
alphabetagamma
11156
analyser
112-
oxidising
113-
114-
# misc
11557
appdef
58+
appdefdir
11659
appdefs
60+
arpes
61+
caplog
62+
cnxvalidate
63+
dataconverter
64+
electronanalyzer
65+
ellips
66+
ellipsometry
67+
emittance
68+
filemanager
69+
flatfield
70+
fluence
71+
fxcef
72+
hildebrandt
73+
hixu
11774
hypothes
75+
infile
76+
infty
77+
kfra
78+
libhdf
79+
libiconv
80+
loadgroup
81+
lukaspie
82+
mainfile
83+
mbar
84+
mkuehbach
85+
monochromator
86+
monoclinic
87+
mydata
88+
mydatareader
89+
mynxdl
90+
namefitting
91+
nexpy
92+
nexusformat
93+
nexusvalidate
94+
nexusvalidation
95+
nxdls
96+
orcid
97+
otherfile
98+
oxidising
99+
pathtovalidate
100+
physik
118101
plottable
119-
underload
102+
posint
103+
punx
104+
pynxtools
105+
setpoint
106+
sherjeelshabih
107+
tommaso
108+
underload
109+
xarrays
110+
xdist
111+
xfbaa
112+
xraylens

.github/workflows/build_docs.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master # Triggers deployment on push to the master branch
7-
7+
88
env:
99
python-version: 3.12
1010

@@ -27,15 +27,6 @@ jobs:
2727
git config user.name github-actions[bot]
2828
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
2929
30-
- name: Check spelling
31-
uses: streetsidesoftware/cspell-action@v7
32-
with:
33-
files: |
34-
docs/**/*.md
35-
README.md
36-
strict: true
37-
incremental_files_only: false
38-
3930
- name: Install uv and set the python version to ${{ env.python-version }}
4031
uses: astral-sh/setup-uv@v5
4132
with:

.github/workflows/spellcheck.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Spell Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master # Triggers deployment on push to the master branch
7+
8+
jobs:
9+
spellcheck:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Install dependencies and dictionary
17+
run: |
18+
npm install -g cspell jq @cspell/dict-scientific-terms-us
19+
20+
- name: Run cspell
21+
run: |
22+
cspell --config cspell.json "docs/**/*.md" "CITATION.cff" "README.md"
23+
24+
- name: Fail on errors
25+
run: |
26+
if [[ $? -ne 0 ]]; then
27+
echo "There are spelling errors in your code. Please fix them and try again."
28+
exit 1
29+
fi

CITATION.cff

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ message:
44
If you use this software, please cite it using the
55
metadata from this file.
66
type: software
7-
version: 0.11.1
7+
version: 0.12.0
88
authors:
99
- given-names: Sherjeel
1010
family-names: Shabih

cspell.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"ignorePaths": [
44
"./tests/data/*",
55
"*.toml",
6+
"Makefile",
67
"*.bat",
78
"*.egg-info"
89
],
@@ -13,8 +14,10 @@
1314
"addWords": true
1415
}
1516
],
17+
"import": ["@cspell/dict-scientific-terms-us/cspell-ext.json"],
1618
"dictionaries": [
1719
"custom-dictionary",
20+
"scientific_terms_US",
1821
"python"
1922
],
2023
"words": [],

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=64.0.1", "setuptools-scm[toml]>=6.2"]
2+
requires = ["setuptools>=78.1.1", "setuptools-scm[toml]>=6.2"]
33
backend-path = ["src/pynxtools"]
44
build-backend = "_build_wrapper"
55

@@ -38,7 +38,6 @@ dependencies = [
3838
"pint",
3939
"cachetools",
4040
"structlog",
41-
4241
]
4342

4443
[project.urls]

0 commit comments

Comments
 (0)