Skip to content

Commit 63cb6cc

Browse files
committed
Implement B017
1 parent 3b56b58 commit 63cb6cc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ extend-select = [
262262
# it may be worth fixing some or these in the future
263263
# PYI036 disable until https://github.com/astral-sh/ruff/issues/9794 is fixed
264264
ignore = ["E501", "G004", "PLR2004", "PLR0913", "PLR0911", "PLR0912", "PLR0915", "PLW0602", "PLW0603", "PLW2901", "PYI036",
265-
"B018", "B017","SIM118", "PT014", "LOG015", "PT031",
265+
"B018","SIM118", "PT014", "LOG015", "PT031",
266266
"DTZ007", "DTZ005", "BLE001", "S110",
267267
"PIE790", "N999", "PIE804",
268268
"DTZ006",

tests/parameter/test_permissive_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
@pytest.mark.parametrize("args", bad_args)
2626
def test_bad_calls(args) -> None:
27-
with pytest.raises(Exception):
27+
with pytest.raises(TypeError):
2828
permissive_range(*args)
2929

3030

tests/test_instrument.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def test_validate_function(testdummy: DummyInstrument) -> None:
9595

9696
testdummy.dac1.cache._value = 1000 # overrule the validator
9797
testdummy.dac1.cache._raw_value = 1000 # overrule the validator
98-
with pytest.raises(Exception):
98+
with pytest.raises(ValueError):
9999
testdummy.validate_status()
100100

101101

0 commit comments

Comments
 (0)