Skip to content

Commit 0906a6e

Browse files
committed
configure codespell at pyproject.toml and pre-commit
1 parent 8bc03e0 commit 0906a6e

File tree

9 files changed

+35
-7
lines changed

9 files changed

+35
-7
lines changed

Diff for: .codespell/ignore_lines.txt

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

Diff for: .codespell/ignore_words.txt

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
;; Please include explanations for each ignored word (lowercase) using full sentences.
2+
;; See https://docs.openverse.org/meta/codespell.html for docs.
3+
4+
;; short-form form materials 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
12+
13+

Diff for: .pre-commit-config.yaml

+6
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

Diff for: CHANGELOG.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ Release Notes
99

1010
**Fixed:**
1111

12-
* Updated REAMDE instructions for pip and conda-forge install
13-
* Updated REAMDE instructions to check for successful installation
12+
* Updated README instructions for pip and conda-forge install
13+
* Updated README instructions to check for successful installation
1414

1515

1616
0.1.2

Diff for: README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ trying to commit again.
127127

128128
Improvements and fixes are always appreciated.
129129

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

132132
Contact
133133
-------

Diff for: doc/source/quickstart.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. _quick_start:
22

3-
Tutorial (To be addded)
3+
Tutorial (To be added)
44
#################
55

66
Welcome! This will be a quick tutorial to accquaint users with `snmf`.
@@ -18,5 +18,5 @@ Add extra tutorials here
1818
Bug Reports
1919
===========
2020

21-
Please enjoy using our software! If you come accross any bugs in the
21+
Please enjoy using our software! If you come across any bugs in the
2222
application, please report them to [email protected].

Diff for: pyproject.toml

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ namespaces = false # to disable scanning PEP 420 namespaces (true by default)
5454
[tool.setuptools.dynamic]
5555
dependencies = {file = ["requirements/pip.txt"]}
5656

57+
[tool.codespell]
58+
exclude-file = ".codespell/ignore_lines.txt"
59+
ignore-words = ".codespell/ignore_words.txt"
60+
skip = "*.cif"
61+
5762
[tool.black]
5863
line-length = 115
5964
include = '\.pyi?$'

Diff for: src/diffpy/snmf/polynomials.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def rooth(linear_coefficient, constant_term):
88
99
Parameters
1010
----------
11-
linear_coefficient: nd array like of floats
11+
linear_coefficient: ndarray like of floats
1212
The matrix coefficient of the linear term
1313
constant_term: 0d array like, 1d array like of floats or scalar
1414
The constant scalar term of the problem

Diff for: src/diffpy/snmf/subroutines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ def update_weights_matrix(
362362
The matrx containing the stretching factors of the calculated component signals. Has dimensions K x M
363363
where K is the number of component signals and M is the number of XRD/PDF patterns.
364364
365-
component_matrix: 2d array lik
365+
component_matrix: 2d array like
366366
The matrix containing the unstretched calculated component signals. Has dimensions N x K where N is the
367367
length of the signals and K is the number of component signals.
368368

0 commit comments

Comments
 (0)