From f7f64dc4251f6011c40f361f05f3f4b5fa2fa1c9 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Mon, 30 Dec 2024 20:06:06 +0100 Subject: [PATCH 1/3] Fix typos --- pygmt/figure.py | 2 +- pygmt/src/meca.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/figure.py b/pygmt/figure.py index 1d051c0dacc..374eb1d8fee 100644 --- a/pygmt/figure.py +++ b/pygmt/figure.py @@ -248,7 +248,7 @@ def savefig( kwargs.pop("metadata", None) self.psconvert(prefix=prefix, fmt=fmts[ext], crop=crop, **kwargs) - # TODO(GMT>=6.5.0): Remve the workaround for upstream bug in GMT<6.5.0. + # TODO(GMT>=6.5.0): Remove the workaround for upstream bug in GMT<6.5.0. # Remove the .pgw world file if exists. Not necessary after GMT 6.5.0. # See upstream fix https://github.com/GenericMappingTools/gmt/pull/7865 if ext == "tiff": diff --git a/pygmt/src/meca.py b/pygmt/src/meca.py index f24ea0bbfbf..ba6de1f7868 100644 --- a/pygmt/src/meca.py +++ b/pygmt/src/meca.py @@ -323,7 +323,7 @@ def meca( # noqa: PLR0912, PLR0913, PLR0915 [**+p**\ *pen*][**+s**\ *size*]. Offset beachball(s) to the longitude(s) and latitude(s) specified in the last two columns of the input file or array, or by ``plot_longitude`` and - ``plot_latitude`` if provided. A line from the beachball to the inital location + ``plot_latitude`` if provided. A line from the beachball to the initial location is drawn. Use **+s**\ *size* to plot a small circle at the initial location and to set the diameter of this circle [Default is no circle]. Use **+p**\ *pen* to set the pen attributes for this feature [Default is set via ``pen``]. The fill From efbd63562e463352b361a7ad8573a1ed3be04935 Mon Sep 17 00:00:00 2001 From: yvonnefroelich Date: Mon, 30 Dec 2024 20:49:28 +0100 Subject: [PATCH 2/3] Use lower-case --- pygmt/datasets/earth_free_air_anomaly.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygmt/datasets/earth_free_air_anomaly.py b/pygmt/datasets/earth_free_air_anomaly.py index 190f218d858..d85911496d6 100644 --- a/pygmt/datasets/earth_free_air_anomaly.py +++ b/pygmt/datasets/earth_free_air_anomaly.py @@ -30,8 +30,8 @@ def load_earth_free_air_anomaly( :widths: 50 50 :header-rows: 1 - * - IGPP Earth free-Air anomaly - - IGPP Earth free-Air anomaly uncertainty + * - IGPP Earth free-air anomaly + - IGPP Earth free-air anomaly uncertainty * - .. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_earth_faa.jpg - .. figure:: https://www.generic-mapping-tools.org/remote-datasets/_images/GMT_earth_faaerror.jpg From 490fb6eea267c8a4a954dd9161ba2cea3a5cf3bd Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Tue, 31 Dec 2024 11:07:24 +0800 Subject: [PATCH 3/3] Ignore ND in the codespell words --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index dfea29b5c46..2150af08d7b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,7 @@ local_scheme = "node-and-date" fallback_version = "999.999.999+unknown" [tool.codespell] -ignore-words-list = "astroid,oints,reenable,tripel,trough" +ignore-words-list = "astroid,oints,reenable,tripel,trough,ND" [tool.coverage.run] omit = ["*/tests/*", "*pygmt/__init__.py"]