Skip to content

Commit a714b98

Browse files
Implement automatic spell check via Codespell and fix typos (#149)
* Apply spelling fix and configure codespell * Add news * [pre-commit.ci] auto fixes from pre-commit hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 35ef9e8 commit a714b98

32 files changed

Lines changed: 90 additions & 43 deletions

.codespell/ignore_lines.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
;; Please include filenames and explanations for each ignored line.
2+
;; See https://docs.openverse.org/meta/codespell.html for docs.

.codespell/ignore_words.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
;; Please include explanations for each ignored word (lowercase).
2+
;; See https://docs.openverse.org/meta/codespell.html for docs.
3+
4+
;; abbreviation for "materials" often used in a journal title
5+
mater
6+
7+
;; alternative use of socioeconomic
8+
socio-economic
9+
10+
;; Frobenius norm used in np.linalg.norm
11+
fro

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ repos:
4444
name: Prevent Commit to Main Branch
4545
args: ["--branch", "main"]
4646
stages: [pre-commit]
47+
- repo: https://github.com/codespell-project/codespell
48+
rev: v2.3.0
49+
hooks:
50+
- id: codespell
51+
additional_dependencies:
52+
- tomli

AUTHORS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Authors
22
=======
33

44
Luke Granlund
5-
Billinge Group and community contibutors.
5+
Billinge Group and community contributors.
66

77
Contributors
88
------------

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ trying to commit again.
152152

153153
Improvements and fixes are always appreciated.
154154

155-
Before contribuing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.srmise/blob/main/CODE_OF_CONDUCT.rst>`_.
155+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.srmise/blob/main/CODE_OF_CONDUCT.rst>`_.
156156

157157
Contact
158158
-------

doc/examples/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ the copiously commented scripts helpful.
111111
* Peak extraction with initial peaks:
112112
extract_initial.py
113113

114-
* Peak fitting with intial peaks:
114+
* Peak fitting with initial peaks:
115115
fit_initial.py
116116

117117
* Querying SrMise results:
@@ -678,7 +678,7 @@ the baseline. The methods of greatest interest are as follows. ::
678678
# Get the correlation between two parameters
679679
cov.getcorrelation((i1,j1), (i2,j2))
680680

681-
Suppose, for example, one wants to emperically estimate the number of silver
681+
Suppose, for example, one wants to empirically estimate the number of silver
682682
atoms contributing to each occupied coordination shell of the FCC structure,
683683
knowing that the coordination number (i.e. nearest neighbors) of an ideal FCC
684684
structure is exactly 12. For a monoelemental material the intensity of a peak

doc/examples/multimodel_known_dG2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def run(plot=True):
114114
# with respect to the actual experiment when using a Nyquist-sampled PDF
115115
# with experimentally determined uncertainties.
116116
#
117-
# The present PDF satisifes these conditions, so the rankings below reflect
117+
# The present PDF satisfies these conditions, so the rankings below reflect
118118
# an AIC-based estimate of which of the tested models the data best support.
119119
print("\n--------- Model Rankings for dG = %f ---------" % dG)
120120
print("Rank Model Class Free AIC Prob File")

doc/examples/output/extract_single_peak.pwa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ModelEvaluator=AIC
4444
## Extracted Peaks
4545
# Parameters are given in the natural units of the data,
4646
# where width is measured as full-width at half maximum.
47-
# Each line is followd by a comment which gives the index
47+
# Each line is followed by a comment which gives the index
4848
# of the corresponding Peak Function.
4949
#L position fwhm area
5050
2.90074809344 0.267213055365 9.84389058517 # 1

doc/examples/output/fit_initial.pwa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ModelEvaluator=AIC
4343
## Extracted Peaks
4444
# Parameters are given in the natural units of the data,
4545
# where width is measured as full-width at half maximum.
46-
# Each line is followd by a comment which gives the index
46+
# Each line is followed by a comment which gives the index
4747
# of the corresponding Peak Function.
4848
#L position fwhm area
4949
1.44052045545 0.126922793092 35515.0466525 # 1

doc/examples/output/known_dG_m0.pwa

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ModelEvaluator=AIC
5151
## Extracted Peaks
5252
# Parameters are given in the natural units of the data,
5353
# where width is measured as full-width at half maximum.
54-
# Each line is followd by a comment which gives the index
54+
# Each line is followed by a comment which gives the index
5555
# of the corresponding Peak Function.
5656
#L position fwhm area
5757
11.2310491383 0.29009226516 19.2512559254 # 2

0 commit comments

Comments
 (0)