From fd43a8206b31896660c919273c7e3b1cae863974 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 4 May 2024 21:50:57 +0200 Subject: [PATCH] MNT: Apply ruff/flake8-implicit-str-concat rule ISC001 ISC001 Implicitly concatenated string literals on one line This rule is currently disabled because it conflicts with the formatter: https://github.com/astral-sh/ruff/issues/8272 --- mriqc/bin/fs2gif.py | 2 +- mriqc/interfaces/bids.py | 2 +- mriqc/interfaces/functional.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mriqc/bin/fs2gif.py b/mriqc/bin/fs2gif.py index cadf2ecb0..44f3d4ddd 100644 --- a/mriqc/bin/fs2gif.py +++ b/mriqc/bin/fs2gif.py @@ -130,7 +130,7 @@ def main(): ) tclfp.write(' SetSlice $slice\n') tclfp.write(' RedrawScreen\n') - tclfp.write(f' SaveTIFF [format "{tmp_sub}/{subid}-' '%03d.tif" $i]\n') + tclfp.write(f' SaveTIFF [format "{tmp_sub}/{subid}-%03d.tif" $i]\n') tclfp.write(' incr i\n') tclfp.write('}\n') tclfp.write('QuitMedit\n') diff --git a/mriqc/interfaces/bids.py b/mriqc/interfaces/bids.py index 1f6cc77ce..1d5232c00 100644 --- a/mriqc/interfaces/bids.py +++ b/mriqc/interfaces/bids.py @@ -150,7 +150,7 @@ def _run_interface(self, runtime): self._out_dict.update(val) else: config.loggers.interface.warning( - 'Output "%s" is not a dictionary (value="%s"), ' 'discarding output.', + 'Output "%s" is not a dictionary (value="%s"), discarding output.', root_key, str(val), ) diff --git a/mriqc/interfaces/functional.py b/mriqc/interfaces/functional.py index 68f6cd5f5..f510c481d 100644 --- a/mriqc/interfaces/functional.py +++ b/mriqc/interfaces/functional.py @@ -432,7 +432,7 @@ def _build_timeseries_metadata(): ), }, 'dvars_nstd': { - 'LongName': ('Derivative of RMS Variance over Voxels,' 'Non-Standardized'), + 'LongName': ('Derivative of RMS Variance over Voxels, Non-Standardized'), 'Description': ( 'Indexes the rate of change of BOLD signal across' 'the entire brain at each frame of data, not normalized.' @@ -462,7 +462,7 @@ def _build_timeseries_metadata(): 'aor': { 'LongName': "AFNI's Fraction of Outliers per Volume", 'Description': ( - 'Mean fraction of outliers per fMRI volume as' "given by AFNI's 3dToutcount" + "Mean fraction of outliers per fMRI volume as given by AFNI's 3dToutcount" ), }, }