Skip to content

Commit

Permalink
use isort (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau authored Feb 5, 2024
1 parent 92d6a8a commit 97e6384
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ repos:
- id: rst-backticks
- id: rst-inline-touching-normal

- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: [--profile, black]

- repo: https://github.com/psf/black
rev: 24.1.1
hooks:
Expand All @@ -72,12 +78,6 @@ repos:
hooks:
- id: flynt

- repo: https://github.com/asottile/reorder-python-imports
rev: v3.12.0
hooks:
- id: reorder-python-imports
args: [--py38-plus, --add-import, from __future__ import annotations]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
Expand Down
1 change: 1 addition & 0 deletions demos/convert.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Convert Octave notebooks to scripts."""

from __future__ import annotations

import json
Expand Down
3 changes: 1 addition & 2 deletions src/bidspm.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
from rich import print

from src.matlab import matlab
from src.parsers import bidspm_log
from src.parsers import common_parser
from src.parsers import bidspm_log, common_parser

log = bidspm_log(name="bidspm")

Expand Down
3 changes: 1 addition & 2 deletions src/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
import pydantic
from bsmschema.models import BIDSStatsModel

from src.parsers import bidspm_log
from src.parsers import validate_parser
from src.parsers import bidspm_log, validate_parser

log = bidspm_log(name="bidspm")

Expand Down
12 changes: 7 additions & 5 deletions tests/test_bidspm.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

import pytest

from src.bidspm import append_base_arguments
from src.bidspm import append_common_arguments
from src.bidspm import base_cmd
from src.bidspm import bidspm
from src.bidspm import run_command
from src.bidspm import (
append_base_arguments,
append_common_arguments,
base_cmd,
bidspm,
run_command,
)
from src.parsers import common_parser


Expand Down

0 comments on commit 97e6384

Please sign in to comment.