GeezerVison is showing github.com — Use typos for code spelling · GenericMappingTools/pygmt@189a2ee
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/4-release_checklist.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,7 @@ assignees: '' | 33 | 33 | - [ ] Update warnings in `pygmt/_show_versions.py` as well as notes in [Not working transparency](https://www.pygmt.org/dev/install.html#not-working-transparency) regarding GMT-Ghostscript incompatibility | 34 | 34 | - [ ] Reserve a DOI on [Zenodo](https://zenodo.org) by clicking on "New Version" | 35 | 35 | - [ ] Finish up the "Changelog entry for v0.x.x" Pull Request (Use the previous changelog PR as a reference) | 36 | | -- [ ] Run `make codespell` to check common misspellings. If there are any, either fix them or add them to `ignore-words-list` in `pyproject.toml` | | 36 | +- [ ] Run `make spellcheck` to check common misspellings. If there are any, either fix them or add them to the relevant spelling configuration in `pyproject.toml` | 37 | 37 | - [ ] Draft the announcement on https://hackmd.io/@pygmt | 38 | 38 |
| 39 | 39 | **Release**: | |
Collapse file Copy file name to clipboardExpand all lines: Makefile +6-3Lines changed: 6 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | @echo " test_no_images run the test suite (including all doctests) but skip image comparisons" | 17 | 17 | @echo " format run Ruff to automatically format the code" | 18 | 18 | @echo " check run Ruff to check code style and quality" | 19 | | - @echo " codespell run codespell to check common misspellings" | | 19 | + @echo " spellcheck run codespell and typos to check common misspellings" | 20 | 20 | @echo " typecheck run mypy for static type check" | 21 | 21 | @echo " clean clean up build and generated files" | 22 | 22 | @echo " distclean clean up build and generated files, including project metadata files" | @@ -67,8 +67,11 @@ check: | 67 | 67 | ruff check $(FORMAT_FILES) | 68 | 68 | ruff format --check $(FORMAT_FILES) | 69 | 69 |
| 70 | | -codespell: | 71 | | - @codespell | | 70 | +spellcheck: | | 71 | + @status=0; \ | | 72 | + codespell || status=1; \ | | 73 | + typos || status=1; \ | | 74 | + exit $$status | 72 | 75 |
| 73 | 76 | typecheck: | 74 | 77 | mypy ${PROJECT} | |
Collapse file Copy file name to clipboardExpand all lines: environment.yml +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,6 +27,7 @@ dependencies: | 27 | 27 | - codespell | 28 | 28 | - prek | 29 | 29 | - ruff>=0.15.5 | | 30 | + - typos | 30 | 31 | # Dev dependencies (unit testing) | 31 | 32 | - matplotlib-base | 32 | 33 | - pytest>=6.0 | |
Collapse file Copy file name to clipboardExpand all lines: pyproject.toml +19-1Lines changed: 19 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -71,7 +71,25 @@ local_scheme = "node-and-date" | 71 | 71 | fallback_version = "999.999.999+unknown" | 72 | 72 |
| 73 | 73 | [tool.codespell] | 74 | | -ignore-words-list = "astroid,buda,oints,reenable,te,tripel,trough,ND" | | 74 | +ignore-words-list = "astroid,buda,oints,te,tripel,trough,ND,fo,ser,OCE" | | 75 | + | | 76 | +[tool.typos.default.extend-words] | | 77 | +astroid = "astroid" | | 78 | +buda = "buda" | | 79 | +fo = "fo" | | 80 | +iddle = "iddle" | | 81 | +oints = "oints" | | 82 | +pn = "pn" | | 83 | +ser = "ser" | | 84 | +te = "te" | | 85 | +tripel = "tripel" | | 86 | +trough = "trough" | | 87 | +Ba = "Ba" | | 88 | +ND = "ND" | | 89 | +OCE = "OCE" | | 90 | +Tripel = "Tripel" | | 91 | + | | 92 | +[tool.typos.default.extend-identifiers] | 75 | 93 |
| 76 | 94 | [tool.coverage.run] | 77 | 95 | omit = ["*/tests/*", "*pygmt/__init__.py"] | |
|