Skip to content

Commit 9c37506

Browse files
committed
isort
1 parent e2cf50f commit 9c37506

9 files changed

Lines changed: 16 additions & 17 deletions

File tree

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ exclude = ["*/__version__.py"]
8383
[tool.ruff.lint]
8484
select = ["E", "F", "I", "W"]
8585

86+
[tool.ruff.lint.isort]
87+
known-first-party = ["ezmsg.tools"]
88+
known-third-party = ["ezmsg"]
89+
8690
[tool.uv.sources]
8791
# Uncomment to use development version of ezmsg from git
8892
#ezmsg = { git = "https://github.com/ezmsg-org/ezmsg.git", branch = "feature/profiling" }

scripts_nbs/orphan/run_attach.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import asyncio
22
import logging
33

4-
import typer
5-
64
import ezmsg.core as ez
75
import ezmsg.core.graphserver
86
import ezmsg.core.messagecache
97
import ezmsg.core.shmserver
8+
import typer
109
from ezmsg.core.backendprocess import DefaultBackendProcess, new_threaded_event_loop
1110
from ezmsg.util.debuglog import DebugLog
1211

scripts_nbs/profiler/ecog_preproc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1+
import ezmsg.core as ez
12
import numpy as np
23
import typer
3-
4-
import ezmsg.core as ez
54
from ezmsg.sigproc.affinetransform import CommonRereference
65
from ezmsg.sigproc.bandpower import BandPower, SpectrogramSettings
76
from ezmsg.sigproc.butterworthfilter import ButterworthFilter

scripts_nbs/profiler/profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import asyncio
22

3+
import ezmsg.core as ez
34
import typer
45

5-
import ezmsg.core as ez
66
from ezmsg.tools.dag import crawl_coro
77
from ezmsg.tools.profile import ProfileLog, ProfileLogSettings
88

src/ezmsg/tools/dag.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
from typing import TYPE_CHECKING
55
from uuid import uuid4
66

7-
import pandas as pd
8-
97
import ezmsg.core as ez
8+
import pandas as pd
109

1110
if TYPE_CHECKING:
1211
import pygraphviz

src/ezmsg/tools/perfmon/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import plotly.express as px
2424
import pygtail
2525
from dash_extensions import Mermaid, enrich
26-
2726
from ezmsg.baseproc.util.profile import get_logger_path
2827
from ezmsg.core.graphserver import GraphService
2928

src/ezmsg/tools/shmem/shmem.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@
3030
import typing
3131
from multiprocessing.shared_memory import SharedMemory
3232

33+
import ezmsg.core as ez
3334
import numpy as np
3435
import numpy.typing as npt
35-
36-
import ezmsg.core as ez
3736
from ezmsg.util.messages.axisarray import AxisArray, AxisBase
3837

3938
UINT64_SIZE = 8

tests/test_shmem_mirror.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
from dataclasses import replace
77
from pathlib import Path
88

9+
import ezmsg.core as ez
910
import numpy as np
1011
import pytest
11-
12-
import ezmsg.core as ez
1312
from ezmsg.sigproc.synth import Clock, Oscillator
14-
from ezmsg.tools.sigmon.shmem.shmem import ShMemCircBuff
15-
from ezmsg.tools.sigmon.shmem.shmem_mirror import EZShmMirror
1613
from ezmsg.util.messagecodec import message_log
1714
from ezmsg.util.messagelogger import MessageLogger
1815
from ezmsg.util.messages.axisarray import AxisArray
1916
from ezmsg.util.terminate import TerminateOnTotal
2017

18+
from ezmsg.tools.sigmon.shmem.shmem import ShMemCircBuff
19+
from ezmsg.tools.sigmon.shmem.shmem_mirror import EZShmMirror
20+
2121

2222
class CrazyUnitSettings(ez.Settings):
2323
change_after: int = 1e9

tests/test_shmem_sink.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
from dataclasses import replace
44
from pathlib import Path
55

6+
import ezmsg.core as ez
67
import numpy as np
78
import pytest
8-
9-
import ezmsg.core as ez
109
from ezmsg.sigproc.synth import Clock, Oscillator
11-
from ezmsg.tools.shmem.shmem import ShMemCircBuff
1210
from ezmsg.util.messagecodec import message_log
1311
from ezmsg.util.messagelogger import MessageLogger
1412
from ezmsg.util.messages.axisarray import AxisArray
1513
from ezmsg.util.terminate import TerminateOnTotal
1614

15+
from ezmsg.tools.shmem.shmem import ShMemCircBuff
16+
1717

1818
class CrazyUnitSettings(ez.Settings):
1919
change_after: int = 1e9

0 commit comments

Comments
 (0)