Skip to content
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

STY: Enforce more ruff rules #3437

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

DimitriPapadopoulos
Copy link
Contributor

No description provided.

G004 Logging statement uses f-string
FLY002 Consider f-string instead of string join
PERF403 Use a dictionary comprehension instead of a for-loop
PGH003 Use specific rule codes when ignoring type issues
PLE1205 Too many arguments for `logging` format string
RUF010 Use explicit conversion flag
RUF013 PEP 484 prohibits implicit `Optional`
RUF021 Parenthesize `a and b` expressions when chaining `and` and `or`
together, to make the precedence clear
RUF100 Unused `noqa` directive
F841 Local variable is assigned to but never used
FURB192 Prefer `max` over `sorted()` to compute the maximum value in a sequence
RUF028 This suppression comment is invalid because it cannot be in an
expression, pattern, argument list, or other non-statement
RUF039 First argument is not raw string
Copy link

codecov bot commented Mar 2, 2025

Codecov Report

Attention: Patch coverage is 64.28571% with 5 lines in your changes missing coverage. Please review.

Project coverage is 73.04%. Comparing base (9a581d6) to head (4ebdbe8).

Files with missing lines Patch % Lines
fmriprep/interfaces/reports.py 0.00% 3 Missing ⚠️
fmriprep/interfaces/workbench.py 0.00% 1 Missing ⚠️
fmriprep/utils/telemetry.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3437      +/-   ##
==========================================
+ Coverage   72.99%   73.04%   +0.05%     
==========================================
  Files          57       57              
  Lines        4369     4367       -2     
  Branches      548      547       -1     
==========================================
+ Hits         3189     3190       +1     
+ Misses       1064     1062       -2     
+ Partials      116      115       -1     

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

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.

1 participant