| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| HourLocator, MicrosecondLocator, MinuteLocator, | ||
| MonthLocator, RRuleLocator, SecondLocator, | ||
| WeekdayLocator, YearLocator, rrulewrapper) | ||
| from matplotlib.dates import DateFormatter |
There was a problem hiding this comment.
It seems that while these aren't referenced in the code directly, they are referenced from strings that get evaled:
Traceback (most recent call last):
File "/home/circleci/project/galleries/examples/ticks/date_formatters_locators.py", line 58, in <module>
plot_axis(ax, locator, xmax, fmt)
File "/home/circleci/project/galleries/examples/ticks/date_formatters_locators.py", line 27, in plot_axis
ax.xaxis.set_major_locator(eval(locator))
^^^^^^^^^^^^^
File "<string>", line 1, in <module>
NameError: name 'AutoDateLocator' is not defined
Sorry, something went wrong.
There was a problem hiding this comment.
Indeed, I'll add a comment to make that more obvious.
Sorry, something went wrong.
There was a problem hiding this comment.
Sigh, isort wants to remove the noqa, while ruff/flake8 wants it. I'll just restore the exception then.
Sorry, something went wrong.
ruff uses `project.requires-python`, so the ruff-only `target-version` is not needed. Other exceptions can be dropped since they are all clear of warnings.
The removed excludes are covered by the first line. The Unpack feature was enabled by default in 1.9, which is our minimum.
These examples only needed a single fix to remove the exception.
| Back | FazBrowse Home | New Git URL |
PR summary
Drop outdated options, and exceptions that are no longer needed because the files were fixed. Also, fix a few simpler cases so that more exceptions can be dropped.
PR checklist