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
/mesaPublic

ruff fixes in visualization#2867

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
quaquel merged 5 commits intomesa:mainfromquaquel:ruff_fixes
Oct 28, 2025
Merged

ruff fixes in visualization#2867

quaquel merged 5 commits intomesa:mainfromquaquel:ruff_fixes
Oct 28, 2025

Conversation

@quaquel
Copy link
Member

@quaquelquaquel commentedOct 28, 2025
edited
Loading

The stable version of Ruff (v0.13.3) creates two new errors for MESA:RUF059 andRUF043. This PR fixes both following the suggested fixes from ruff.

Closes#2865

@github-actions
Copy link

Performance benchmarks:

ModelSizeInit time [95% CI]Run time [95% CI]
BoltzmannWealthsmall🔵 +0.7% [+0.1%, +1.4%]🔵 +1.8% [+1.6%, +2.0%]
BoltzmannWealthlarge🔵 +0.0% [-0.3%, +0.3%]🔵 +1.6% [+1.0%, +2.1%]
Schellingsmall🔵 +0.3% [+0.1%, +0.4%]🔵 +0.2% [+0.1%, +0.3%]
Schellinglarge🔵 -0.1% [-0.5%, +0.4%]🔵 +1.2% [+0.9%, +1.4%]
WolfSheepsmall🔵 +0.1% [-0.3%, +0.5%]🔵 -0.9% [-1.1%, -0.6%]
WolfSheeplarge🔵 -0.7% [-1.7%, +0.2%]🔵 -1.4% [-1.7%, -1.1%]
BoidFlockerssmall🔵 +2.4% [+1.4%, +3.7%]🔵 +1.3% [+0.9%, +1.8%]
BoidFlockerslarge🔵 +2.1% [+1.3%, +3.0%]🔵 +1.2% [+0.6%, +1.8%]

fix broken unit test
@EwoutH
Copy link
Member

Awesome, thanks. Could you explain briefly whatre.escape does?

@EwoutHEwoutH added maintenanceRelease notes label ciRelease notes label labelsOct 28, 2025
@quaquel
Copy link
MemberAuthor

I just followed the suggested fix forRUF043.

From thedocs: "Escape special characters in pattern. This is useful if you want to match an arbitrary literal string that may have regular expression metacharacters in it."

Copy link
Member

@EwoutHEwoutH left a comment

Choose a reason for hiding this comment

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

Thanks! If you could add a few lines to the PR description for future reference, good to go.

@quaquelquaquel merged commitd34f87b intomesa:mainOct 28, 2025
13 checks passed
@quaquelquaquel deleted the ruff_fixes branchOctober 28, 2025 15:13
EwoutH pushed a commit that referenced this pull requestOct 31, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@EwoutHEwoutHEwoutH approved these changes

Assignees

No one assigned

Labels

ciRelease notes labelmaintenanceRelease notes label

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Update Ruff to v0.13 and Fix RUF059 Violations

2 participants

@quaquel@EwoutH

[8]ページ先頭

©2009-2025 Movatter.jp