Skip to content

Commit 2625e99

Browse files
committed
MNT: Fix up lint found by latest plugins
1 parent 354cd02 commit 2625e99

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

examples/meteogram_metpy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def plot_winds(self, ws, wd, wsmax, plot_range=None):
8080
ax7.set_ylabel('Wind\nDirection\n(degrees)', multialignment='center')
8181
ax7.set_ylim(0, 360)
8282
ax7.set_yticks(np.arange(45, 405, 90), ['NE', 'SE', 'SW', 'NW'])
83-
lns = ln1 + ln2 + ln3
84-
labs = [l.get_label() for l in lns]
83+
lines = ln1 + ln2 + ln3
84+
labs = [line.get_label() for line in lines]
8585
ax7.xaxis.set_major_formatter(mpl.dates.DateFormatter('%d/%H UTC'))
86-
ax7.legend(lns, labs, loc='upper center',
86+
ax7.legend(lines, labs, loc='upper center',
8787
bbox_to_anchor=(0.5, 1.2), ncol=3, prop={'size': 12})
8888

8989
def plot_thermo(self, t, td, plot_range=None):
@@ -111,11 +111,11 @@ def plot_thermo(self, t, td, plot_range=None):
111111

112112
ax_twin = self.ax2.twinx()
113113
ax_twin.set_ylim(plot_range[0], plot_range[1], plot_range[2])
114-
lns = ln4 + ln5
115-
labs = [l.get_label() for l in lns]
114+
lines = ln4 + ln5
115+
labs = [line.get_label() for line in lines]
116116
ax_twin.xaxis.set_major_formatter(mpl.dates.DateFormatter('%d/%H UTC'))
117117

118-
self.ax2.legend(lns, labs, loc='upper center',
118+
self.ax2.legend(lines, labs, loc='upper center',
119119
bbox_to_anchor=(0.5, 1.2), ncol=2, prop={'size': 12})
120120

121121
def plot_rh(self, rh, plot_range=None):

src/metpy/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@
3232
os.environ['PINT_ARRAY_PROTOCOL_FALLBACK'] = '0'
3333

3434
from ._version import get_version # noqa: E402
35-
from .xarray import * # noqa: F401, F403
35+
from .xarray import * # noqa: F401, F403, E402
3636
__version__ = get_version()
3737
del get_version

src/metpy/plots/wx_symbols.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ def __init__(self, num, font_start, font_jumps=None, char_jumps=None):
106106
font_point += 1
107107

108108
@staticmethod
109-
def _safe_pop(l):
109+
def _safe_pop(lst):
110110
"""Safely pop from a list.
111111
112112
Returns None if list empty.
113113
114114
"""
115-
return l.pop(0) if l else None
115+
return lst.pop(0) if lst else None
116116

117117
def __call__(self, code):
118118
"""Return the Unicode code point corresponding to `code`."""

0 commit comments

Comments
 (0)