-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure automatic spelling check via codespell within pre-commit #121
Changes from 4 commits
0906a6e
cb669d0
ac9a719
3a71a1a
7849efb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
;; Please include filenames and explanations for each ignored line. | ||
;; See https://docs.openverse.org/meta/codespell.html for docs. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
;; Please include explanations for each ignored word (lowercase). | ||
;; See https://docs.openverse.org/meta/codespell.html for docs. | ||
|
||
;; abbreviation for "materials" often used in a journal title | ||
mater | ||
|
||
;; alternative use of socioeconomic | ||
socio-economic | ||
|
||
;; Frobenius norm used in np.linalg.norm | ||
fro | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,7 +127,7 @@ trying to commit again. | |
|
||
Improvements and fixes are always appreciated. | ||
|
||
Before contribuing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.snmf/blob/main/CODE_OF_CONDUCT.rst>`_. | ||
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.snmf/blob/main/CODE_OF_CONDUCT.rst>`_. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo found by codespell |
||
|
||
Contact | ||
------- | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
.. _quick_start: | ||
|
||
Tutorial (To be addded) | ||
Tutorial (To be added) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo found by codespell |
||
################# | ||
|
||
Welcome! This will be a quick tutorial to accquaint users with `snmf`. | ||
|
@@ -18,5 +18,5 @@ Add extra tutorials here | |
Bug Reports | ||
=========== | ||
|
||
Please enjoy using our software! If you come accross any bugs in the | ||
Please enjoy using our software! If you come across any bugs in the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo found by codespell |
||
application, please report them to [email protected]. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
**Added:** | ||
|
||
* Add spelling check pre-commit via Codespell | ||
|
||
**Changed:** | ||
|
||
* <news item> | ||
|
||
**Deprecated:** | ||
|
||
* <news item> | ||
|
||
**Removed:** | ||
|
||
* <news item> | ||
|
||
**Fixed:** | ||
|
||
* <news item> | ||
|
||
**Security:** | ||
|
||
* <news item> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,11 @@ namespaces = false # to disable scanning PEP 420 namespaces (true by default) | |
[tool.setuptools.dynamic] | ||
dependencies = {file = ["requirements/pip.txt"]} | ||
|
||
[tool.codespell] | ||
exclude-file = ".codespell/ignore_lines.txt" | ||
ignore-words = ".codespell/ignore_words.txt" | ||
skip = "*.cif" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. skip files |
||
|
||
[tool.black] | ||
line-length = 115 | ||
include = '\.pyi?$' | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -362,7 +362,7 @@ def update_weights_matrix( | |
The matrx containing the stretching factors of the calculated component signals. Has dimensions K x M | ||
where K is the number of component signals and M is the number of XRD/PDF patterns. | ||
|
||
component_matrix: 2d array lik | ||
component_matrix: 2d array like | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. typo found by codespell |
||
The matrix containing the unstretched calculated component signals. Has dimensions N x K where N is the | ||
length of the signals and K is the number of component signals. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo found by codespell