Skip to content

Commit fcb7ef2

Browse files
committed
chore: Address flake8 complaints
1 parent 69847c5 commit fcb7ef2

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

templateflow/client.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,17 @@ def ls(self, template, **kwargs) -> list[Path]:
9393
9494
>>> client = TemplateFlowClient()
9595
96-
>>> client.ls('MNI152Lin', resolution=1, suffix='T1w', desc=None) # doctest: +ELLIPSIS
96+
>>> client.ls('MNI152Lin', resolution=1, suffix='T1w', desc=None)
9797
[PosixPath('.../tpl-MNI152Lin/tpl-MNI152Lin_res-01_T1w.nii.gz')]
9898
99-
>>> client.ls('MNI152Lin', resolution=2, suffix='T1w', desc=None) # doctest: +ELLIPSIS
99+
>>> client.ls('MNI152Lin', resolution=2, suffix='T1w', desc=None)
100100
[PosixPath('.../tpl-MNI152Lin/tpl-MNI152Lin_res-02_T1w.nii.gz')]
101101
102-
>>> client.ls('MNI152Lin', suffix='T1w', desc=None) # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
102+
>>> client.ls('MNI152Lin', suffix='T1w', desc=None)
103103
[PosixPath('.../tpl-MNI152Lin/tpl-MNI152Lin_res-01_T1w.nii.gz'),
104104
PosixPath('.../tpl-MNI152Lin/tpl-MNI152Lin_res-02_T1w.nii.gz')]
105105
106-
>>> client.ls('fsLR', space=None, hemi='L',
107-
... density='32k', suffix='sphere') # doctest: +ELLIPSIS
106+
>>> client.ls('fsLR', space=None, hemi='L', density='32k', suffix='sphere')
108107
[PosixPath('.../tpl-fsLR_hemi-L_den-32k_sphere.surf.gii')]
109108
110109
>>> client.ls('fsLR', space='madeup')
@@ -159,25 +158,23 @@ def get(self, template, raise_empty=False, **kwargs) -> list[Path]:
159158
160159
>>> client = TemplateFlowClient()
161160
162-
>>> str(client.get('MNI152Lin', resolution=1, suffix='T1w', desc=None)) # doctest: +ELLIPSIS
161+
>>> str(client.get('MNI152Lin', resolution=1, suffix='T1w', desc=None))
163162
'.../tpl-MNI152Lin/tpl-MNI152Lin_res-01_T1w.nii.gz'
164163
165-
>>> str(client.get('MNI152Lin', resolution=2, suffix='T1w', desc=None)) # doctest: +ELLIPSIS
164+
>>> str(client.get('MNI152Lin', resolution=2, suffix='T1w', desc=None))
166165
'.../tpl-MNI152Lin/tpl-MNI152Lin_res-02_T1w.nii.gz'
167166
168-
>>> [str(p) for p in client.get(
169-
... 'MNI152Lin', suffix='T1w', desc=None)] # doctest: +ELLIPSIS +NORMALIZE_WHITESPACE
167+
>>> [str(p) for p in client.get('MNI152Lin', suffix='T1w', desc=None)]
170168
['.../tpl-MNI152Lin/tpl-MNI152Lin_res-01_T1w.nii.gz',
171169
'.../tpl-MNI152Lin/tpl-MNI152Lin_res-02_T1w.nii.gz']
172170
173-
>>> str(client.get('fsLR', space=None, hemi='L',
174-
... density='32k', suffix='sphere')) # doctest: +ELLIPSIS
171+
>>> str(client.get('fsLR', space=None, hemi='L', density='32k', suffix='sphere'))
175172
'.../tpl-fsLR_hemi-L_den-32k_sphere.surf.gii'
176173
177174
>>> client.get('fsLR', space='madeup')
178175
[]
179176
180-
>>> client.get('fsLR', raise_empty=True, space='madeup') # doctest: +IGNORE_EXCEPTION_DETAIL
177+
>>> client.get('fsLR', raise_empty=True, space='madeup')
181178
Traceback (most recent call last):
182179
Exception:
183180
...

templateflow/tests/test_s3.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@
3939
def test_get_skel_file(tmp_path, monkeypatch):
4040
"""Exercise the skeleton file generation."""
4141

42-
home = (tmp_path / 's3-skel-file').resolve()
43-
4442
md5content = b'anything'
4543

4644
def mock_get(*args, **kwargs):

0 commit comments

Comments
 (0)