Skip to content

Commit 8280bd3

Browse files
authored
Merge pull request #788 from nipype/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents e742836 + fcbda5e commit 8280bd3

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,28 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: v5.0.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010
- id: check-added-large-files
1111
- repo: https://github.com/psf/black
12-
rev: 24.4.2
12+
rev: 25.1.0
1313
hooks:
1414
- id: black
1515
- repo: https://github.com/codespell-project/codespell
16-
rev: v2.3.0
16+
rev: v2.4.1
1717
hooks:
1818
- id: codespell
1919
additional_dependencies:
2020
- tomli
2121
- repo: https://github.com/PyCQA/flake8
22-
rev: 7.0.0
22+
rev: 7.2.0
2323
hooks:
2424
- id: flake8
2525
- repo: https://github.com/kynan/nbstripout
26-
rev: 0.5.0
26+
rev: 0.8.1
2727
hooks:
2828
- id: nbstripout
2929
files: \.(ipynb)$

docs/source/examples/glm.ipynb

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "c8149a94",
5+
"id": "0",
66
"metadata": {},
77
"source": [
88
"# General Linear Model (GLM)"
99
]
1010
},
1111
{
1212
"cell_type": "markdown",
13-
"id": "b54b132a",
13+
"id": "1",
1414
"metadata": {},
1515
"source": [
1616
"In this tutorial, which is adapted from the Nilearn docs, we will go through a simple workflow of the first level general linear modeling with a BIDS dataset from openneuro. This analysis is only performed on **one** subject.\n",
@@ -21,7 +21,7 @@
2121
{
2222
"cell_type": "code",
2323
"execution_count": null,
24-
"id": "9f514ffe",
24+
"id": "2",
2525
"metadata": {},
2626
"outputs": [],
2727
"source": [
@@ -31,7 +31,7 @@
3131
},
3232
{
3333
"cell_type": "markdown",
34-
"id": "8313a041",
34+
"id": "3",
3535
"metadata": {},
3636
"source": [
3737
"## Preparation\n",
@@ -42,7 +42,7 @@
4242
{
4343
"cell_type": "code",
4444
"execution_count": null,
45-
"id": "72d1dfdd",
45+
"id": "4",
4646
"metadata": {},
4747
"outputs": [],
4848
"source": [
@@ -83,7 +83,7 @@
8383
{
8484
"cell_type": "code",
8585
"execution_count": null,
86-
"id": "5716cb50",
86+
"id": "5",
8787
"metadata": {},
8888
"outputs": [],
8989
"source": [
@@ -101,7 +101,7 @@
101101
{
102102
"cell_type": "code",
103103
"execution_count": null,
104-
"id": "1878928b",
104+
"id": "6",
105105
"metadata": {},
106106
"outputs": [],
107107
"source": [
@@ -110,7 +110,7 @@
110110
},
111111
{
112112
"cell_type": "markdown",
113-
"id": "6cafd6a1",
113+
"id": "7",
114114
"metadata": {},
115115
"source": [
116116
"## Create tasks\n",
@@ -125,7 +125,7 @@
125125
},
126126
{
127127
"cell_type": "markdown",
128-
"id": "823780ab",
128+
"id": "8",
129129
"metadata": {},
130130
"source": [
131131
"### fetch openneuro BIDS dataset\n",
@@ -142,7 +142,7 @@
142142
{
143143
"cell_type": "code",
144144
"execution_count": null,
145-
"id": "e2ab134c",
145+
"id": "9",
146146
"metadata": {},
147147
"outputs": [],
148148
"source": [
@@ -158,7 +158,7 @@
158158
},
159159
{
160160
"cell_type": "markdown",
161-
"id": "1b4899de",
161+
"id": "10",
162162
"metadata": {},
163163
"source": [
164164
"### obtain FirstLevelModel objects automatically and fit arguments\n",
@@ -181,7 +181,7 @@
181181
{
182182
"cell_type": "code",
183183
"execution_count": null,
184-
"id": "3c2710dc",
184+
"id": "11",
185185
"metadata": {},
186186
"outputs": [],
187187
"source": [
@@ -217,7 +217,7 @@
217217
},
218218
{
219219
"cell_type": "markdown",
220-
"id": "e5af99cb",
220+
"id": "12",
221221
"metadata": {},
222222
"source": [
223223
"### Get design matrix\n",
@@ -233,7 +233,7 @@
233233
{
234234
"cell_type": "code",
235235
"execution_count": null,
236-
"id": "2bdfcfd9",
236+
"id": "13",
237237
"metadata": {},
238238
"outputs": [],
239239
"source": [
@@ -263,7 +263,7 @@
263263
},
264264
{
265265
"cell_type": "markdown",
266-
"id": "e1cb37d0",
266+
"id": "14",
267267
"metadata": {},
268268
"source": [
269269
"### Fit the first level model\n",
@@ -278,7 +278,7 @@
278278
{
279279
"cell_type": "code",
280280
"execution_count": null,
281-
"id": "65cec504",
281+
"id": "15",
282282
"metadata": {},
283283
"outputs": [],
284284
"source": [
@@ -299,7 +299,7 @@
299299
},
300300
{
301301
"cell_type": "markdown",
302-
"id": "05576ba4",
302+
"id": "16",
303303
"metadata": {},
304304
"source": [
305305
"### Get cluster table\n",
@@ -310,7 +310,7 @@
310310
{
311311
"cell_type": "code",
312312
"execution_count": null,
313-
"id": "d4a86a6f",
313+
"id": "17",
314314
"metadata": {},
315315
"outputs": [],
316316
"source": [
@@ -327,7 +327,7 @@
327327
},
328328
{
329329
"cell_type": "markdown",
330-
"id": "c1e8effd",
330+
"id": "18",
331331
"metadata": {},
332332
"source": [
333333
"### Make plots\n",
@@ -344,7 +344,7 @@
344344
{
345345
"cell_type": "code",
346346
"execution_count": null,
347-
"id": "c0f78107",
347+
"id": "19",
348348
"metadata": {},
349349
"outputs": [],
350350
"source": [
@@ -417,7 +417,7 @@
417417
},
418418
{
419419
"cell_type": "markdown",
420-
"id": "12a99b96",
420+
"id": "20",
421421
"metadata": {},
422422
"source": [
423423
"## Make a workflow from tasks\n",
@@ -434,7 +434,7 @@
434434
{
435435
"cell_type": "code",
436436
"execution_count": null,
437-
"id": "6e79e9b1",
437+
"id": "21",
438438
"metadata": {},
439439
"outputs": [],
440440
"source": [
@@ -493,7 +493,7 @@
493493
},
494494
{
495495
"cell_type": "markdown",
496-
"id": "657690ea",
496+
"id": "22",
497497
"metadata": {},
498498
"source": [
499499
"## The overaching workflow\n",
@@ -506,7 +506,7 @@
506506
{
507507
"cell_type": "code",
508508
"execution_count": null,
509-
"id": "d055c5d0",
509+
"id": "23",
510510
"metadata": {},
511511
"outputs": [],
512512
"source": [
@@ -570,7 +570,7 @@
570570
},
571571
{
572572
"cell_type": "markdown",
573-
"id": "1b2e9a46",
573+
"id": "24",
574574
"metadata": {},
575575
"source": [
576576
"## Run Workflow Run"
@@ -579,7 +579,7 @@
579579
{
580580
"cell_type": "code",
581581
"execution_count": null,
582-
"id": "9a90088e",
582+
"id": "25",
583583
"metadata": {
584584
"tags": [
585585
"hide-output"
@@ -598,23 +598,23 @@
598598
},
599599
{
600600
"cell_type": "markdown",
601-
"id": "f540cdd4",
601+
"id": "26",
602602
"metadata": {},
603603
"source": [
604604
"## Visualization"
605605
]
606606
},
607607
{
608608
"cell_type": "markdown",
609-
"id": "e8def869",
609+
"id": "27",
610610
"metadata": {},
611611
"source": [
612612
"If you arrive here without any errors, yay, you just made your first pydra workflow for a first-level GLM!"
613613
]
614614
},
615615
{
616616
"cell_type": "markdown",
617-
"id": "9b0585e3",
617+
"id": "28",
618618
"metadata": {},
619619
"source": [
620620
"## Examine folder structure\n",
@@ -625,7 +625,7 @@
625625
{
626626
"cell_type": "code",
627627
"execution_count": null,
628-
"id": "75c1cfc9",
628+
"id": "29",
629629
"metadata": {
630630
"tags": [
631631
"hide-output"
@@ -638,7 +638,7 @@
638638
},
639639
{
640640
"cell_type": "markdown",
641-
"id": "56aeee0c",
641+
"id": "30",
642642
"metadata": {},
643643
"source": [
644644
"### Plot figures"
@@ -647,7 +647,7 @@
647647
{
648648
"cell_type": "code",
649649
"execution_count": null,
650-
"id": "1f657571",
650+
"id": "31",
651651
"metadata": {
652652
"tags": [
653653
"hide-input"
@@ -674,15 +674,15 @@
674674
},
675675
{
676676
"cell_type": "markdown",
677-
"id": "081bf13a",
677+
"id": "32",
678678
"metadata": {},
679679
"source": [
680680
"## Exercise"
681681
]
682682
},
683683
{
684684
"cell_type": "markdown",
685-
"id": "a3d55272",
685+
"id": "33",
686686
"metadata": {},
687687
"source": [
688688
"What if we need to run the first-level GLM on multiple subject? We will need the `splitter`.\n",

pydra/compose/shell/tests/test_shell_run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2854,7 +2854,7 @@ def test_shell_cmd_inputspec_outputspec_5(tmp_path):
28542854
"""
28552855
customised input_spec and output_spec, output_spec uses input_spec fields in the requires
28562856
requires is a list of list so it is treated as OR list (i.e. el[0] OR el[1] OR...)
2857-
the firs element of the requires list has all the fields set
2857+
the first element of the requires list has all the fields set
28582858
"""
28592859
cmd = ["touch", "newfile_tmp.txt"]
28602860

0 commit comments

Comments
 (0)