Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
johannvk committed Nov 18, 2024
1 parent 548bab7 commit 17e40a4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions skchange/anomaly_detectors/tests/test_anomaly_detectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
import pandas as pd
import pytest

from skchange.anomaly_detectors import ANOMALY_DETECTORS, COLLECTIVE_ANOMALY_DETECTORS
from skchange.anomaly_detectors import MoscoreAnomaly
from skchange.anomaly_detectors import (
ANOMALY_DETECTORS,
COLLECTIVE_ANOMALY_DETECTORS,
MoscoreAnomaly,
)
from skchange.anomaly_detectors.base import CollectiveAnomalyDetector
from skchange.datasets.generate import generate_anomalous_data
from skchange.scores.mean_score import init_mean_score, mean_anomaly_score
Expand Down
2 changes: 0 additions & 2 deletions skchange/costs/tests/test_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,3 @@ def cost_f(params: np.ndarray, start: int, end: int, split: int) -> float:
assert init_cost_f(np.zeros(1)) == np.zeros(1)
assert cost_f(np.zeros(1), 0, 1, 0) == 10.0
assert (cost_f, init_cost_f) == cost_factory((cost_f, init_cost_f))


1 change: 1 addition & 0 deletions skchange/costs/tests/test_savings.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def test_savings(savings):

def test_custom_savings():
"""Test custom savings."""

def init_savings_f(X: np.ndarray) -> np.ndarray:
return X

Expand Down
1 change: 1 addition & 0 deletions skchange/utils/numba/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""Numba utility functions."""

from .soft_import import jit, njit, prange
2 changes: 1 addition & 1 deletion skchange/utils/numba/general.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Numba-optimized functions for various common data manipulation tasks.""" ""
"""Numba-optimized functions for various common data manipulation tasks."""

import numpy as np

Expand Down

0 comments on commit 17e40a4

Please sign in to comment.