Skip to content

Commit a208ca8

Browse files
committed
Try removing all noqa: W505
1 parent 03e0357 commit a208ca8

10 files changed

+12
-13
lines changed

examples/projections/cyl/cyl_universal_transverse_mercator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
3535
The projection is set with **u** or **U**. *zone* sets the zone for the figure,
3636
and the figure size is set with *scale* or *width*.
37-
""" # noqa: W505
37+
"""
3838

3939
# %%
4040
import pygmt

pygmt/datasets/earth_age.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ def load_earth_age(resolution="01d", region=None, registration=None):
7272
:class:`xarray.DataArray` grid can be accessed via the GMT accessors
7373
(i.e., ``grid.gmt.registration`` and ``grid.gmt.gtype`` respectively).
7474
However, these properties may be lost after specific grid operations (such
75-
as slicing) and will need to be manually set before passing the grid to any
76-
PyGMT data processing or plotting functions. Refer to
75+
as slicing) and will need to be manually set before passing the grid to any PyGMT data processing or plotting functions. Refer to
7776
:class:`pygmt.GMTDataArrayAccessor` for detailed explanations and
7877
workarounds.
7978
@@ -91,7 +90,7 @@ def load_earth_age(resolution="01d", region=None, registration=None):
9190
... region=[120, 160, 30, 60],
9291
... registration="gridline",
9392
... )
94-
""" # noqa: W505
93+
"""
9594
grid = _load_remote_dataset(
9695
dataset_name="earth_age",
9796
dataset_prefix="earth_age_",

pygmt/datasets/earth_free_air_anomaly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def load_earth_free_air_anomaly(resolution="01d", region=None, registration=None
9595
... region=[120, 160, 30, 60],
9696
... registration="gridline",
9797
... )
98-
""" # noqa: W505
98+
"""
9999
grid = _load_remote_dataset(
100100
dataset_name="earth_free_air_anomaly",
101101
dataset_prefix="earth_faa_",

pygmt/datasets/earth_geoid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def load_earth_geoid(resolution="01d", region=None, registration=None):
8484
... region=[120, 160, 30, 60],
8585
... registration="gridline",
8686
... )
87-
""" # noqa: W505
87+
"""
8888
grid = _load_remote_dataset(
8989
dataset_name="earth_geoid",
9090
dataset_prefix="earth_geoid_",

pygmt/datasets/earth_magnetic_anomaly.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def load_earth_magnetic_anomaly(
132132
>>> grid = load_earth_magnetic_anomaly(
133133
... resolution="20m", registration="gridline", data_source="wdmam"
134134
... )
135-
""" # noqa: W505
135+
"""
136136
magnetic_anomaly_sources = {
137137
"emag2": "earth_mag_",
138138
"emag2_4km": "earth_mag4km_",

pygmt/datasets/earth_mask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def load_earth_mask(resolution="01d", region=None, registration=None):
8888
>>> # location (170°E, 50°N) is in oceanic area (0)
8989
>>> grid.sel(lon=170, lat=50).values
9090
array(0, dtype=int8)
91-
""" # noqa: W505
91+
"""
9292
grid = _load_remote_dataset(
9393
dataset_name="earth_mask",
9494
dataset_prefix="earth_mask_",

pygmt/datasets/earth_relief.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def load_earth_relief(
136136
... registration="gridline",
137137
... use_srtm=True,
138138
... )
139-
""" # noqa: W505
139+
"""
140140
# resolutions of original land-only SRTM tiles from NASA
141141
land_only_srtm_resolutions = ["03s", "01s"]
142142

pygmt/datasets/earth_vertical_gravity_gradient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def load_earth_vertical_gravity_gradient(
9797
... region=[120, 160, 30, 60],
9898
... registration="gridline",
9999
... )
100-
""" # noqa: W505
100+
"""
101101
grid = _load_remote_dataset(
102102
dataset_name="earth_vgg",
103103
dataset_prefix="earth_vgg_",

pygmt/datasets/samples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def load_sample_data(name):
330330
>>> from pprint import pprint
331331
>>> from pygmt.datasets import list_sample_data, load_sample_data
332332
>>> # use list_sample_data to see the available datasets
333-
>>> pprint(list_sample_data(), width=120) # noqa: W505
333+
>>> pprint(list_sample_data(), width=120)
334334
{'bathymetry': 'Table of ship bathymetric observations off Baja California',
335335
'earth_relief_holes': 'Regional 20 arc-minutes Earth relief grid with holes',
336336
'fractures': 'Table of hypothetical fracture lengths and azimuths',
@@ -344,7 +344,7 @@ def load_sample_data(name):
344344
'usgs_quakes': 'Table of earthquakes from the USGS'}
345345
>>> # load the sample bathymetry dataset
346346
>>> data = load_sample_data("bathymetry")
347-
""" # noqa: W505
347+
"""
348348
if name not in datasets:
349349
raise GMTInvalidInput(f"Invalid dataset name '{name}'.")
350350
return datasets[name].func()

pygmt/src/nearneighbor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def nearneighbor(data=None, x=None, y=None, z=None, **kwargs):
146146
... region=[245, 255, 20, 30],
147147
... search_radius="10m",
148148
... )
149-
""" # noqa: W505
149+
"""
150150
with GMTTempFile(suffix=".nc") as tmpfile:
151151
with Session() as lib:
152152
table_context = lib.virtualfile_from_data(

0 commit comments

Comments
 (0)