Skip to content

Commit 0767f70

Browse files
committed
Merge remote-tracking branch 'upstream/master' into enh/fs_long
2 parents 8465bfe + 8830bf8 commit 0767f70

38 files changed

+2003
-1768
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,9 @@ jobs:
458458
name: Run anatomical workflow on ds005
459459
no_output_timeout: 2h
460460
command: |
461+
# Remove part of FreeSurfer output to ensure that at least
462+
# some of recon-all is attempted
463+
rm /tmp/ds005/freesurfer/sub-01/mri/ribbon.mgz
461464
bash /tmp/src/smriprep/.circleci/ds005_run.sh --write-graph
462465
- run:
463466
name: Combine coverage

.git-blame-ignore-revs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 2023-11-21 - [email protected] - STY: ruff --fix smriprep [git-blame-ignore-rev]
2+
3a586cf46cb1bb963b93d9546f20273194d15de5
3+
# 2023-11-20 - [email protected] - STY: ruff --fix smriprep [git-blame-ignore-rev]
4+
c5e8b6b8ddb69284a4cba58e2512b299f1e29464
5+
# 2023-11-20 - [email protected] - STY: ruff format smriprep [git-blame-ignore-rev]
6+
8d62c0f3f3c6a911b1dfe2e9a2016b8de7da051a

.github/workflows/pythonpackage.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
path: dist/
8989
if: matrix.install == 'sdist' || matrix.install == 'wheel'
9090
- name: Set up Python ${{ matrix.python-version }}
91-
uses: actions/setup-python@v4
91+
uses: actions/setup-python@v5
9292
with:
9393
python-version: ${{ matrix.python-version }}
9494
- name: Select archive
@@ -112,9 +112,10 @@ jobs:
112112
- uses: codecov/codecov-action@v3
113113
name: Submit to CodeCov
114114

115-
flake8:
115+
style:
116116
if: "!contains(github.event.head_commit.message, '[skip ci]')"
117117
runs-on: ubuntu-latest
118118
steps:
119119
- uses: actions/checkout@v4
120-
- run: pipx run flake8 smriprep
120+
- run: pipx run ruff smriprep
121+
- run: pipx run ruff format --diff smriprep

.pre-commit-config.yaml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,8 @@ repos:
1010
- id: check-added-large-files
1111
- id: check-toml
1212
- id: check-json
13-
- repo: https://github.com/pycqa/flake8
14-
rev: 6.0.0
13+
- repo: https://github.com/astral-sh/ruff-pre-commit
14+
rev: v0.1.6
1515
hooks:
16-
- id: flake8
17-
# - repo: https://github.com/psf/black
18-
# rev: 23.1.0
19-
# hooks:
20-
# - id: black
21-
# files: ^smriprep/|^wrapper/
22-
# - repo: https://github.com/pycqa/isort
23-
# rev: 5.12.0
24-
# hooks:
25-
# - id: isort
26-
# files: ^smriprep/|^wrapper/
16+
- id: ruff
17+
- id: ruff-format

CHANGES.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
0.13.2 (December 08, 2023)
2+
==========================
3+
Bug fix release in the 0.13.x series.
4+
5+
This release fixes a check for skull-stripping in auto mode, and adds
6+
missing fsLR atlases to the Python package resources.
7+
The Docker image has also been updated to ensure FreeSurfer can be run
8+
from the sMRIPrep container.
9+
10+
With thanks to Patrick Sadil for reports and fixes.
11+
12+
* ENH: Add 59k atlases (#405)
13+
* FIX: Repair FreeSurfer dependency in Dockerfile (tcsh) (#404)
14+
* FIX: Invert result of skull-strip check in auto mode (#402)
15+
16+
17+
0.13.1 (November 21, 2023)
18+
==========================
19+
Bug fix release in the 0.13.x series.
20+
21+
This release fixes a bug with a workflow connection that was not properly
22+
named, and which would cause an error when T2-weighted images were provided.
23+
24+
* FIX: T1w_preproc -> t1w_preproc (#399)
25+
26+
127
0.13.0 (November 20, 2023)
228
==========================
329
New feature release in the 0.13.x series.

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ ENV DEBIAN_FRONTEND="noninteractive" \
9393
LC_ALL="en_US.UTF-8"
9494

9595
# Some baseline tools
96-
# bc is needed for FreeSurfer
96+
# bc, tcsh are needed for FreeSurfer
9797
# libglu1-mesa is needed for Connectome Workbench
9898
RUN apt-get update && \
9999
apt-get install -y --no-install-recommends \
@@ -105,6 +105,7 @@ RUN apt-get update && \
105105
libglu1-mesa \
106106
lsb-release \
107107
netbase \
108+
tcsh \
108109
xvfb && \
109110
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
110111

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help docker
1+
.PHONY: help docker .git-blame-ignore-revs
22
.DEFAULT: help
33

44
tag="latest"
@@ -15,3 +15,9 @@ docker:
1515
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
1616
--build-arg VCS_REF=`git rev-parse --short HEAD` \
1717
--build-arg VERSION=`python setup.py --version` .
18+
19+
20+
.git-blame-ignore-revs:
21+
git log --grep "\[git-blame-ignore-rev\]" --pretty=format:"# %ad - %ae - %s%n%H" --date short \
22+
> .git-blame-ignore-revs
23+
echo >> .git-blame-ignore-revs

pyproject.toml

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ version-file = "smriprep/_version.py"
9999

100100
[tool.black]
101101
line-length = 99
102-
target-version = ['py39']
103102
skip-string-normalization = true
104103

105104
[tool.isort]
@@ -136,3 +135,38 @@ source = [
136135
"smriprep/",
137136
"*/site-packages/smriprep",
138137
]
138+
139+
[tool.ruff]
140+
line-length = 99
141+
extend-select = [
142+
"F",
143+
"E",
144+
"W",
145+
"I",
146+
"UP",
147+
"YTT",
148+
"S",
149+
"BLE",
150+
"B",
151+
"A",
152+
# "CPY",
153+
"C4",
154+
"DTZ",
155+
"T10",
156+
# "EM",
157+
"EXE",
158+
"FA",
159+
"ISC",
160+
"ICN",
161+
"PT",
162+
"Q",
163+
]
164+
165+
[tool.ruff.flake8-quotes]
166+
inline-quotes = "single"
167+
168+
[tool.ruff.extend-per-file-ignores]
169+
"*/test_*.py" = ["S101"]
170+
171+
[tool.ruff.format]
172+
quote-style = "single"

smriprep/__about__.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,15 @@
2727
try:
2828
from ._version import __version__
2929
except ImportError: # pragma: no cover
30-
__version__ = "0+unknown"
30+
__version__ = '0+unknown'
3131

32-
__copyright__ = "Copyright 2019, Center for Reproducible Neuroscience, Stanford University"
32+
__copyright__ = 'Copyright 2019, Center for Reproducible Neuroscience, Stanford University'
3333
__credits__ = [
34-
"Oscar Esteban",
35-
"Chris Gorgolewski",
36-
"Christopher J. Markiewicz",
37-
"Russell A. Poldrack",
34+
'Oscar Esteban',
35+
'Chris Gorgolewski',
36+
'Christopher J. Markiewicz',
37+
'Russell A. Poldrack',
3838
]
39-
__url__ = "https://github.com/nipreps/smriprep"
39+
__url__ = 'https://github.com/nipreps/smriprep'
4040

41-
DOWNLOAD_URL = "https://github.com/nipreps/{name}/archive/{ver}.tar.gz".format(
42-
name=__package__, ver=__version__
43-
)
41+
DOWNLOAD_URL = f'https://github.com/nipreps/{__package__}/archive/{__version__}.tar.gz'

smriprep/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
)
1616

1717
__all__ = [
18-
"__copyright__",
19-
"__credits__",
20-
"__version__",
18+
'__copyright__',
19+
'__credits__',
20+
'__version__',
2121
]

0 commit comments

Comments
 (0)