Skip to content

Commit fb56646

Browse files
committed
style: auto-sort imports in tests directory to satisfy ruff I001
1 parent 5b3dc24 commit fb56646

File tree

13 files changed

+19
-6
lines changed

13 files changed

+19
-6
lines changed

tests/builder/test_etl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import polars as pl
66
import pytest
7+
78
from dacos.builder.etl import (
89
execute_etl_pipeline,
910
extract_raw_parquet,

tests/core/test_alignment.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
import numpy as np
44
import pytest
5+
from numpy.testing import assert_array_equal
6+
57
from dacos.core.alignment import (
68
_kernel_align_and_forward_fill_strict,
79
synchronize_asset_to_master_grid_strict,
810
)
9-
from numpy.testing import assert_array_equal
1011

1112

1213
@pytest.fixture

tests/core/test_ingestion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import polars as pl
66
import pytest
7+
78
from dacos.contracts import SILVER_SCHEMA
89
from dacos.core.ingestion import ingest_silver_data, validate_silver_schema
910

tests/core/test_linag.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
import numpy as np
66
import pytest
7+
from numpy.testing import assert_allclose
8+
79
from dacos.core import (
810
_kernel_a_b_inv,
911
_kernel_a_b_t,
@@ -17,7 +19,6 @@
1719
compute_pca_safe,
1820
invert_matrix_safe,
1921
)
20-
from numpy.testing import assert_allclose
2122

2223
# ============================================================================
2324
# FIXTURES

tests/core/test_validation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import numpy as np
44
import polars as pl
55
import pytest
6+
67
from dacos.core.validation import (
78
_kernel_detect_flatline,
89
_kernel_detect_spikes,

tests/e2e/test_api_e2e.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@
1515

1616
import numpy as np
1717
import polars as pl
18+
from polars.testing import assert_frame_equal
19+
1820
from dacos.api import (
1921
evaluate_stat_arb_live,
2022
evaluate_tsm_live,
2123
run_stat_arb_research,
2224
run_tsm_research,
2325
)
2426
from dacos.config import StatArbConfig, TSMConfig
25-
from polars.testing import assert_frame_equal
2627

2728
# ============================================================================
2829
# HELPER: MOCK DATA GENERATORS (The Fuel)

tests/e2e/test_stress.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import numpy as np
1616
import polars as pl
1717
import pytest
18+
1819
from dacos.api import evaluate_tsm_live, run_tsm_research
1920
from dacos.config import TSMConfig
2021
from dacos.paradigms import compute_basket_zscore

tests/laws/test_mean_reversion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
import numpy as np
1010
import pytest
11+
1112
from dacos.laws import (
1213
_kernel_hurst_exponent,
1314
_kernel_ou_half_life,

tests/laws/test_volatility.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import numpy as np
44
import pytest
5+
56
from dacos.laws import (
67
compute_atr_safe,
78
compute_donchian_channels_safe,

tests/paradigms/test_sa_engine.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
import numpy as np
44
import polars as pl
5-
from dacos.paradigms import compute_basket_zscore, compute_pairs_zscore
65
from numpy.testing import assert_allclose
76

7+
from dacos.paradigms import compute_basket_zscore, compute_pairs_zscore
8+
89
# ============================================================================
910
# KUADRAN 1: THE PHYSICS VALIDATION (Akurasi Matematis)
1011
# ============================================================================

0 commit comments

Comments
 (0)