Skip to content

Commit 97e6384

Browse files
authored
use isort (#1198)
1 parent 92d6a8a commit 97e6384

File tree

5 files changed

+16
-15
lines changed

5 files changed

+16
-15
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ repos:
4949
- id: rst-backticks
5050
- id: rst-inline-touching-normal
5151

52+
- repo: https://github.com/pycqa/isort
53+
rev: 5.13.2
54+
hooks:
55+
- id: isort
56+
args: [--profile, black]
57+
5258
- repo: https://github.com/psf/black
5359
rev: 24.1.1
5460
hooks:
@@ -72,12 +78,6 @@ repos:
7278
hooks:
7379
- id: flynt
7480

75-
- repo: https://github.com/asottile/reorder-python-imports
76-
rev: v3.12.0
77-
hooks:
78-
- id: reorder-python-imports
79-
args: [--py38-plus, --add-import, from __future__ import annotations]
80-
8181
- repo: https://github.com/pre-commit/mirrors-mypy
8282
rev: v1.8.0
8383
hooks:

demos/convert.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Convert Octave notebooks to scripts."""
2+
23
from __future__ import annotations
34

45
import json

src/bidspm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
from rich import print
1010

1111
from src.matlab import matlab
12-
from src.parsers import bidspm_log
13-
from src.parsers import common_parser
12+
from src.parsers import bidspm_log, common_parser
1413

1514
log = bidspm_log(name="bidspm")
1615

src/validate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import pydantic
88
from bsmschema.models import BIDSStatsModel
99

10-
from src.parsers import bidspm_log
11-
from src.parsers import validate_parser
10+
from src.parsers import bidspm_log, validate_parser
1211

1312
log = bidspm_log(name="bidspm")
1413

tests/test_bidspm.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55

66
import pytest
77

8-
from src.bidspm import append_base_arguments
9-
from src.bidspm import append_common_arguments
10-
from src.bidspm import base_cmd
11-
from src.bidspm import bidspm
12-
from src.bidspm import run_command
8+
from src.bidspm import (
9+
append_base_arguments,
10+
append_common_arguments,
11+
base_cmd,
12+
bidspm,
13+
run_command,
14+
)
1315
from src.parsers import common_parser
1416

1517

0 commit comments

Comments
 (0)