Skip to content

Commit 6572d1e

Browse files
CI: Pass ruff tests (#3243)
Apply the very simple fixes suggested by ruff. Fixes CI failures, probably related to a recent ruff upgrade.
1 parent b4cced1 commit 6572d1e

26 files changed

+26
-0
lines changed

.maint/paper_author_list.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
"""Generate an author list for a new paper or abstract."""
3+
34
import json
45
import sys
56
from pathlib import Path

.maint/update_authors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
"""Update and sort the creators list of the zenodo record."""
3+
34
import json
45
import sys
56
from pathlib import Path

.maint/update_zenodo.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env python3
22
"""Update and sort the creators list of the zenodo record."""
3+
34
import json
45
import sys
56
from pathlib import Path

docs/sphinxext/github_link.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
This vendored script comes from scikit-learn:
33
https://github.com/scikit-learn/scikit-learn/blob/master/doc/sphinxext/github_link.py
44
"""
5+
56
import inspect
67
import os
78
import subprocess

fmriprep/_warnings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# https://www.nipreps.org/community/licensing/
2222
#
2323
"""Manipulate Python warnings."""
24+
2425
import logging
2526
import warnings
2627

fmriprep/cli/parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# https://www.nipreps.org/community/licensing/
2222
#
2323
"""Parser."""
24+
2425
import sys
2526

2627
from .. import config

fmriprep/cli/run.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# https://www.nipreps.org/community/licensing/
2222
#
2323
"""fMRI preprocessing workflow."""
24+
2425
from .. import config
2526

2627

fmriprep/cli/tests/test_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# https://www.nipreps.org/community/licensing/
2222
#
2323
"""Test parser."""
24+
2425
from argparse import ArgumentError
2526
from contextlib import nullcontext
2627

fmriprep/cli/tests/test_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# https://www.nipreps.org/community/licensing/
2222
#
2323
"""Test version checks."""
24+
2425
from datetime import datetime, timezone
2526
from os import getenv, geteuid
2627
from pathlib import Path

fmriprep/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
:py:class:`~bids.layout.BIDSLayout`, etc.)
8888
8989
"""
90+
9091
import os
9192
from multiprocessing import set_start_method
9293

0 commit comments

Comments
 (0)