Skip to content

Commit 15260a9

Browse files
committed
STY: Add additional (potential) checks, fix two
1 parent 9186f8f commit 15260a9

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,21 @@ extend-select = [
142142
"F",
143143
"E",
144144
"W",
145-
"A",
146145
"I",
147146
"UP",
148147
"YTT",
149148
"S",
150149
"BLE",
151150
"B",
151+
"A",
152+
# "CPY",
153+
"C4",
154+
"DTZ",
155+
"T10",
156+
# "EM",
157+
"EXE",
158+
"FA",
159+
"ISC",
152160
]
153161

154162
[tool.ruff.flake8-quotes]

smriprep/cli/run.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python
21
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-
32
# vi: set ft=python sts=4 ts=4 sw=4 et:
43
#

smriprep/workflows/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,7 @@ def init_single_subject_wf(
336336

337337
if not subject_data['t1w']:
338338
raise Exception(
339-
'No T1w images found for participant {}. ' 'All workflows require T1w images.'.format(
340-
subject_id
341-
)
339+
f'No T1w images found for participant {subject_id}. All workflows require T1w images.'
342340
)
343341

344342
workflow = Workflow(name=name)

0 commit comments

Comments
 (0)