Skip to content

Commit 77deb26

Browse files
committed
Clean up some simple linting exceptions
These examples only needed a single fix to remove the exception.
1 parent 18f93ee commit 77deb26

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

galleries/examples/ticks/date_formatters_locators.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
import matplotlib.pyplot as plt
1313
import numpy as np
1414

15-
from matplotlib.dates import (FR, MO, MONTHLY, SA, SU, TH, TU, WE,
16-
AutoDateFormatter, AutoDateLocator,
17-
ConciseDateFormatter, DateFormatter, DayLocator,
18-
HourLocator, MicrosecondLocator, MinuteLocator,
19-
MonthLocator, RRuleLocator, SecondLocator,
20-
WeekdayLocator, YearLocator, rrulewrapper)
15+
# While these appear unused directly, they are used from eval'd strings.
16+
from matplotlib.dates import ( # noqa: F401
17+
FR, MO, MONTHLY, SA, SU, TH, TU, WE,
18+
AutoDateFormatter, AutoDateLocator,
19+
ConciseDateFormatter, DateFormatter, DayLocator,
20+
HourLocator, MicrosecondLocator, MinuteLocator,
21+
MonthLocator, RRuleLocator, SecondLocator,
22+
WeekdayLocator, YearLocator, rrulewrapper)
2123
import matplotlib.ticker as ticker
2224

2325

galleries/tutorials/images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
3434
In [1]: %matplotlib inline
3535
36-
This turns on inline plotting, where plot graphics will appear in your
37-
notebook. This has important implications for interactivity. For inline plotting, commands in
36+
This turns on inline plotting, where plot graphics will appear in your notebook. This
37+
has important implications for interactivity. For inline plotting, commands in
3838
cells below the cell that outputs a plot will not affect the plot. For example,
3939
changing the colormap is not possible from cells below the cell that creates a plot.
4040
However, for other backends, such as Qt, that open a separate window,

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ convention = "numpy"
176176
"galleries/examples/subplots_axes_and_figures/demo_constrained_layout.py" = ["E402"]
177177
"galleries/examples/text_labels_and_annotations/custom_legends.py" = ["E402"]
178178
"galleries/examples/ticks/date_concise_formatter.py" = ["E402"]
179-
"galleries/examples/ticks/date_formatters_locators.py" = ["F401"]
180179
"galleries/examples/user_interfaces/embedding_in_gtk3_panzoom_sgskip.py" = ["E402"]
181180
"galleries/examples/user_interfaces/embedding_in_gtk3_sgskip.py" = ["E402"]
182181
"galleries/examples/user_interfaces/embedding_in_gtk4_panzoom_sgskip.py" = ["E402"]
@@ -210,7 +209,6 @@ convention = "numpy"
210209
"galleries/users_explain/axes/legend_guide.py" = ["E402"]
211210
"galleries/users_explain/axes/tight_layout_guide.py" = ["E402"]
212211
"galleries/users_explain/animations/animations.py" = ["E501"]
213-
"galleries/tutorials/images.py" = ["E501"]
214212
"galleries/tutorials/pyplot.py" = ["E402", "E501"]
215213
"galleries/users_explain/text/annotations.py" = ["E402", "E501"]
216214
"galleries/users_explain/text/text_intro.py" = ["E402"]

0 commit comments

Comments
 (0)