Skip to content

Commit

Permalink
Pre-commit autoupdate (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
quant-ranger[bot] authored Sep 2, 2024
1 parent 830f461 commit 989f050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/Quantco/pre-commit-mirrors-ruff
rev: 0.5.0
rev: 0.6.2
hooks:
- id: ruff-conda
- id: ruff-format-conda
Expand Down
4 changes: 2 additions & 2 deletions tests/test_formula.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def test_matrix_against_expectation(df, formula, expected):
)
assert len(model_df.matrices) == len(expected.matrices)
for res, exp in zip(model_df.matrices, expected.matrices):
assert type(res) == type(exp)
assert type(res) is type(exp)
if isinstance(res, (tm.DenseMatrix, tm.SparseMatrix)):
np.testing.assert_array_equal(res.toarray(), res.toarray())
elif isinstance(res, tm.CategoricalMatrix):
Expand Down Expand Up @@ -267,7 +267,7 @@ def test_matrix_against_expectation_qcl(df, formula, expected):
)
assert len(model_df.matrices) == len(expected.matrices)
for res, exp in zip(model_df.matrices, expected.matrices):
assert type(res) == type(exp)
assert type(res) is type(exp)
if isinstance(res, (tm.DenseMatrix, tm.SparseMatrix)):
np.testing.assert_array_equal(res.toarray(), res.toarray())
elif isinstance(res, tm.CategoricalMatrix):
Expand Down

0 comments on commit 989f050

Please sign in to comment.