From e39055f103a03fc521977db71aa254e2f625f5e9 Mon Sep 17 00:00:00 2001 From: Wei Ji Date: Thu, 27 Aug 2020 10:36:28 +1200 Subject: [PATCH] Black lint to remove unneeded commas --- pygmt/base_plotting.py | 2 +- pygmt/clib/session.py | 2 +- pygmt/tests/test_grdtrack.py | 4 ++-- pygmt/tests/test_session_management.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pygmt/base_plotting.py b/pygmt/base_plotting.py index cf819538f99..811516c1335 100644 --- a/pygmt/base_plotting.py +++ b/pygmt/base_plotting.py @@ -1013,7 +1013,7 @@ def text( @fmt_docstring @use_alias(R="region", J="projection", B="frame", C="offset") - @kwargs_to_strings(R="sequence",) + @kwargs_to_strings(R="sequence") def meca( self, spec, diff --git a/pygmt/clib/session.py b/pygmt/clib/session.py index 31831d1cdfc..c763d40fddf 100644 --- a/pygmt/clib/session.py +++ b/pygmt/clib/session.py @@ -1065,7 +1065,7 @@ def open_virtual_file(self, family, geometry, direction, data): family_int = self._parse_constant(family, valid=FAMILIES, valid_modifiers=VIAS) geometry_int = self._parse_constant(geometry, valid=GEOMETRIES) direction_int = self._parse_constant( - direction, valid=["GMT_IN", "GMT_OUT"], valid_modifiers=METHODS, + direction, valid=["GMT_IN", "GMT_OUT"], valid_modifiers=METHODS ) buff = ctp.create_string_buffer(self["GMT_VF_LEN"]) diff --git a/pygmt/tests/test_grdtrack.py b/pygmt/tests/test_grdtrack.py index b8fa97e47ff..7f3e8816271 100644 --- a/pygmt/tests/test_grdtrack.py +++ b/pygmt/tests/test_grdtrack.py @@ -25,7 +25,7 @@ def fixture_dataarray(): ) -@pytest.mark.xfail(reason="The reason why it fails is unclear now",) +@pytest.mark.xfail(reason="The reason why it fails is unclear now") def test_grdtrack_input_dataframe_and_dataarray(dataarray): """ Run grdtrack by passing in a pandas.DataFrame and xarray.DataArray as @@ -41,7 +41,7 @@ def test_grdtrack_input_dataframe_and_dataarray(dataarray): return output -@pytest.mark.xfail(reason="The reason why it fails is unclear now",) +@pytest.mark.xfail(reason="The reason why it fails is unclear now") def test_grdtrack_input_csvfile_and_dataarray(dataarray): """ Run grdtrack by passing in a csvfile and xarray.DataArray as inputs diff --git a/pygmt/tests/test_session_management.py b/pygmt/tests/test_session_management.py index b1626604f9c..47c8edc78c1 100644 --- a/pygmt/tests/test_session_management.py +++ b/pygmt/tests/test_session_management.py @@ -8,7 +8,7 @@ def test_begin_end(): - """" + """ Run a command inside a begin-end modern mode block. First, end the global session. When finished, restart it. """