Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Clean up mypy & ruff config#30258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
timhoffm merged 4 commits intomatplotlib:mainfromQuLogic:ruff-update
Jul 5, 2025
Merged

Conversation

QuLogic
Copy link
Member

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

@github-actionsgithub-actionsbot added GUI: webagg Documentation: examplesfiles in galleries/examples Documentation: tutorialsfiles in galleries/tutorials labelsJul 4, 2025
HourLocator, MicrosecondLocator, MinuteLocator,
MonthLocator, RRuleLocator, SecondLocator,
WeekdayLocator, YearLocator, rrulewrapper)
from matplotlib.dates import DateFormatter
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

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

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Indeed, I'll add a comment to make that more obvious.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Sigh,isort wants to remove thenoqa, whileruff/flake8 wants it. I'll just restore the exception then.

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 featurewas enabled by default in 1.9, which is our minimum.
@QuLogicQuLogicforce-pushed theruff-update branch 2 times, most recently fromcf7c0d5 to77deb26CompareJuly 4, 2025 18:50
These examples only needed a single fix to remove the exception.
@timhoffmtimhoffm merged commitfaa3670 intomatplotlib:mainJul 5, 2025
49 of 50 checks passed
@QuLogicQuLogic deleted the ruff-update branchJuly 6, 2025 00:31
@QuLogicQuLogic added this to thev3.11.0 milestoneJul 6, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@jkseppanjkseppanjkseppan approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees
No one assigned
Labels
Documentation: examplesfiles in galleries/examplesDocumentation: tutorialsfiles in galleries/tutorialsGUI: webagg
Projects
None yet
Milestone
v3.11.0
Development

Successfully merging this pull request may close these issues.

3 participants
@QuLogic@jkseppan@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp