Skip to content

Commit

Permalink
prints-fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
koaning committed Nov 7, 2024
1 parent 65ff9f9 commit af69bb7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sklego/this.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
you're doing it wrong.
"""

print(poem)
print(poem) # noqa: T201
2 changes: 1 addition & 1 deletion tests/test_model_selection/test_timegapsplit.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_timegapsplit_too_big_gap():
gap_duration=timedelta(days=5),
)
except ValueError:
print("Successfully failed")
print("Successfully failed") # noqa: T201


def test_timegapsplit_using_splits():
Expand Down
1 change: 0 additions & 1 deletion tests/test_preprocessing/test_interval_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def test_monotonicity_decreasing(data_init):
X, y = generate_dataset(start=data_init)
encoder = IntervalEncoder(n_chunks=40, method="decreasing")
y_transformed = encoder.fit_transform(X, y).reshape(-1).round(4)
print(y_transformed.reshape(-1))
for i in range(len(y_transformed) - 1):
assert y_transformed[i] >= y_transformed[i + 1]

Expand Down
1 change: 0 additions & 1 deletion tests/test_preprocessing/test_monospline.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def test_monotonic_spline_transformer(n_knots, degree, knots):
transformer_sk.fit(X)
out = transformer.transform(X)
out_sk = transformer_sk.transform(X)
print(out.shape, out_sk.shape)

# Both should have the same shape
assert out.shape == out_sk.shape
Expand Down

0 comments on commit af69bb7

Please sign in to comment.