Skip to content

Commit fc246e7

Browse files
authored
Black lint to remove unneeded commas (#572)
1 parent 882b5b2 commit fc246e7

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pygmt/base_plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ def text(
10131013

10141014
@fmt_docstring
10151015
@use_alias(R="region", J="projection", B="frame", C="offset")
1016-
@kwargs_to_strings(R="sequence",)
1016+
@kwargs_to_strings(R="sequence")
10171017
def meca(
10181018
self,
10191019
spec,

pygmt/clib/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,7 @@ def open_virtual_file(self, family, geometry, direction, data):
10651065
family_int = self._parse_constant(family, valid=FAMILIES, valid_modifiers=VIAS)
10661066
geometry_int = self._parse_constant(geometry, valid=GEOMETRIES)
10671067
direction_int = self._parse_constant(
1068-
direction, valid=["GMT_IN", "GMT_OUT"], valid_modifiers=METHODS,
1068+
direction, valid=["GMT_IN", "GMT_OUT"], valid_modifiers=METHODS
10691069
)
10701070

10711071
buff = ctp.create_string_buffer(self["GMT_VF_LEN"])

pygmt/tests/test_grdtrack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def fixture_dataarray():
2525
)
2626

2727

28-
@pytest.mark.xfail(reason="The reason why it fails is unclear now",)
28+
@pytest.mark.xfail(reason="The reason why it fails is unclear now")
2929
def test_grdtrack_input_dataframe_and_dataarray(dataarray):
3030
"""
3131
Run grdtrack by passing in a pandas.DataFrame and xarray.DataArray as
@@ -41,7 +41,7 @@ def test_grdtrack_input_dataframe_and_dataarray(dataarray):
4141
return output
4242

4343

44-
@pytest.mark.xfail(reason="The reason why it fails is unclear now",)
44+
@pytest.mark.xfail(reason="The reason why it fails is unclear now")
4545
def test_grdtrack_input_csvfile_and_dataarray(dataarray):
4646
"""
4747
Run grdtrack by passing in a csvfile and xarray.DataArray as inputs

pygmt/tests/test_session_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99

1010
def test_begin_end():
11-
""""
11+
"""
1212
Run a command inside a begin-end modern mode block.
1313
First, end the global session. When finished, restart it.
1414
"""

0 commit comments

Comments
 (0)