Skip to content

Commit 95ed10a

Browse files
edenoclaude
andcommitted
Apply ruff-format fixes to unblock CI
Two pre-existing formatting violations were unmasked by the current CI ruff version: a multi-line raise in discrete_state_transitions.py (from cd2729d) and a multi-line method signature in test_predict_covariate_transitions.py (latent from 4131d8f). Both are mechanical ruff-format outputs with zero behavioral impact. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d09523e commit 95ed10a

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

src/non_local_detector/discrete_state_transitions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,7 @@ def estimate_stationary_state_transition(
395395
f"got shape {prior_weight_arr.shape}"
396396
)
397397
if np.any(prior_weight_arr < 0):
398-
raise ValueError(
399-
f"prior_weight must be non-negative, got {prior_weight_arr}"
400-
)
398+
raise ValueError(f"prior_weight must be non-negative, got {prior_weight_arr}")
401399

402400
# p(x_t, x_{t+1} | O_{1:T})
403401
joint_distribution = estimate_joint_distribution(

src/non_local_detector/tests/models/test_predict_covariate_transitions.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,7 @@ def test_mismatched_covariate_length_raises_valueerror(
114114
with pytest.raises(ValueError, match="time steps"):
115115
_validate_covariate_time_length(predicted, decode_time)
116116

117-
def test_matching_covariate_length_passes(
118-
self, nonstationary_transition_artifacts
119-
):
117+
def test_matching_covariate_length_passes(self, nonstationary_transition_artifacts):
120118
"""When covariate and decode time match, no error is raised."""
121119
from non_local_detector.models.base import _validate_covariate_time_length
122120

0 commit comments

Comments
 (0)