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: Apply ruff/flake8-implicit-str-concat rule ISC001 #436

Merged
merged 1 commit into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion smriprep/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@

# `python -m smriprep` typically displays the command as __main__.py
if '__main__.py' in sys.argv[0]:
sys.argv[0] = '%s -m smriprep' % sys.executable
sys.argv[0] = f'{sys.executable} -m smriprep'
main()
4 changes: 2 additions & 2 deletions smriprep/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def init_smriprep_wf(
freesurfer_home=os.getenv('FREESURFER_HOME'),
spaces=spaces.get_fs_spaces(),
),
name='fsdir_run_%s' % run_uuid.replace('-', '_'),
name='fsdir_run_{}'.format(run_uuid.replace('-', '_')),
run_without_submitting=True,
)
if fs_subjects_dir is not None:
Expand All @@ -186,7 +186,7 @@ def init_smriprep_wf(
longitudinal=longitudinal,
low_mem=low_mem,
msm_sulc=msm_sulc,
name='single_subject_%s_wf' % subject_id,
name=f'single_subject_{subject_id}_wf',
omp_nthreads=omp_nthreads,
output_dir=output_dir,
skull_strip_fixed_seed=skull_strip_fixed_seed,
Expand Down
4 changes: 2 additions & 2 deletions smriprep/workflows/fit/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ def init_register_template_wf(
# Append template citations to description
for template in templates:
template_meta = get_metadata(template.split(':')[0])
template_refs = ['@%s' % template.split(':')[0].lower()]
template_refs = ['@{}'.format(template.split(':')[0].lower())]

if template_meta.get('RRID', None):
template_refs += ['RRID:%s' % template_meta['RRID']]
template_refs += [f'RRID:{template_meta["RRID"]}']

workflow.__desc__ += """\
*{template_name}* [{template_refs}; TemplateFlow ID: {template}]""".format(
Expand Down