Skip to content

Commit 8d41d95

Browse files
committed
Lint
1 parent c1cd5b2 commit 8d41d95

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pymassspec_plot/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
Figure.__module__ = "matplotlib.figure"
6060

6161

62-
def plot_ic(
62+
def plot_ic( # noqa: PRM002
6363
ax: matplotlib.axes.Axes,
6464
ic: IonChromatogram,
6565
minutes: bool = False,
@@ -103,7 +103,7 @@ def plot_ic(
103103
return plot
104104

105105

106-
def plot_mass_spec(ax: Axes, mass_spec: MassSpectrum, **kwargs) -> BarContainer:
106+
def plot_mass_spec(ax: Axes, mass_spec: MassSpectrum, **kwargs) -> BarContainer: # noqa: PRM002
107107
"""
108108
Plots a Mass Spectrum.
109109

tests/test_plot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def test_plot_head2tail_errors(im_i: IntensityMatrix, data: GCMS_data):
299299
for obj in [*test_sequences, test_string, *test_numbers, im_i.get_ms_at_index(250), im_i, data]:
300300
with pytest.raises(
301301
TypeError,
302-
match="'top_spec_kwargs' must be a mapping of keyword arguments for the top mass spectrum."
302+
match="'top_spec_kwargs' must be a mapping of keyword arguments for the top mass spectrum.",
303303
):
304304
plot_head2tail(
305305
ax,
@@ -310,7 +310,7 @@ def test_plot_head2tail_errors(im_i: IntensityMatrix, data: GCMS_data):
310310

311311
with pytest.raises(
312312
TypeError,
313-
match="'bottom_spec_kwargs' must be a mapping of keyword arguments for the bottom mass spectrum."
313+
match="'bottom_spec_kwargs' must be a mapping of keyword arguments for the bottom mass spectrum.",
314314
):
315315
plot_head2tail(
316316
ax,

0 commit comments

Comments
 (0)