Skip to content

Apply ruff/flake8-simplify rules (SIM) #579

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 6, 2024
Merged

Conversation

DimitriPapadopoulos
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.62%. Comparing base (2c1cf76) to head (21c58c8).
Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #579      +/-   ##
==========================================
+ Coverage   84.61%   84.62%   +0.01%     
==========================================
  Files         293      293              
  Lines       27481    27475       -6     
  Branches     3363     3360       -3     
==========================================
- Hits        23254    23252       -2     
+ Misses       3273     3271       -2     
+ Partials      954      952       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

SIM103 Return the (negated) condition directly
SIM401 Use `get()` instead of an `if` block
SIM910 Use `get(...)` instead of `get(..., None)`
@effigies effigies merged commit 09ed35e into nipy:main Oct 6, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants