Skip to content

Commit

Permalink
Enforce ruff/flake8-pytest-style rules (PT)
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Jul 20, 2024
1 parent 9459579 commit 6b11b85
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,15 @@ extend-select = [
"B",
"I",
"NPY",
"PT",
"RET",
"SIM",
"TCH",
"UP",
]
ignore = [
"PT006",
"PT011",
"RET505",
"RET508",
"SIM108",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_python_blosc.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def test_compress_exceptions(self):
with pytest.raises(ValueError):
blosc2.compress(s, typesize=1, clevel=10)

with pytest.raises(ValueError):
with pytest.raises(TypeError):
blosc2.compress(1.0, 1)
with pytest.raises(ValueError):
blosc2.compress(["abc"], 1)
Expand Down

0 comments on commit 6b11b85

Please sign in to comment.