Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STY] use isort #1198

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading