Skip to content

Commit 26623f1

Browse files
MNT: Add flake8-logging-format (G) rules to ruff
1 parent 16e4455 commit 26623f1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

fmriprep/interfaces/reports.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,8 @@ def get_world_pedir(ornt, pe_direction):
367367
if flip[not inv].startswith(axcode):
368368
return '-'.join(flip)
369369
LOGGER.warning(
370-
'Cannot determine world direction of phase encoding. '
371-
f'Orientation: {ornt}; PE dir: {pe_direction}'
370+
'Cannot determine world direction of phase encoding. Orientation: %s; PE dir: %s',
371+
ornt,
372+
pe_direction,
372373
)
373374
return 'Could not be determined - assuming Anterior-Posterior'

fmriprep/workflows/bold/stc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def init_bold_stc_wf(
114114
inputnode = pe.Node(niu.IdentityInterface(fields=['bold_file', 'skip_vols']), name='inputnode')
115115
outputnode = pe.Node(niu.IdentityInterface(fields=['stc_file']), name='outputnode')
116116

117-
LOGGER.log(25, f'BOLD series will be slice-timing corrected to an offset of {tzero:.3g}s.')
117+
LOGGER.log(25, 'BOLD series will be slice-timing corrected to an offset of %.3gs.', tzero)
118118

119119
# It would be good to fingerprint memory use of afni.TShift
120120
slice_timing_correction = pe.Node(

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ extend-select = [
172172
# "EM",
173173
"EXE",
174174
"FA",
175+
"G",
175176
"ISC",
176177
"ICN",
177178
"PT",

0 commit comments

Comments
 (0)