Skip to content

Commit c63ee1f

Browse files
chore(deps): update dependency ruff to ~=0.13.0 (#501)
Co-authored-by: Vlada Dusek <v.dusek96@gmail.com>
1 parent 348cb7d commit c63ee1f

File tree

4 files changed

+28
-28
lines changed

4 files changed

+28
-28
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ dev = [
5353
"pytest~=8.4.0",
5454
"pytest-httpserver~=1.1.0",
5555
"redbaron~=0.9.0",
56-
"ruff~=0.12.0",
56+
"ruff~=0.13.0",
5757
"setuptools", # setuptools are used by pytest but not explicitly required
5858
"types-colorama~=0.4.15.20240106",
5959
"werkzeug~=3.1.0", # Werkzeug is used by pytest-httpserver

tests/unit/test_statistics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_add_rate_limit_error(attempts: list[int], expected_errors: list[int]) -
2525
def test_add_rate_limit_error_invalid_attempt() -> None:
2626
"""Test that add_rate_limit_error raises ValueError for invalid attempt."""
2727
stats = Statistics()
28-
with pytest.raises(ValueError, match='Attempt must be greater than 0'):
28+
with pytest.raises(ValueError, match=r'Attempt must be greater than 0'):
2929
stats.add_rate_limit_error(0)
3030

3131

tests/unit/test_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ def test_pluck_data() -> None:
2626
assert pluck_data({'a': 'b', 'data': {'b': 'c'}}) == {'b': 'c'}
2727

2828
# throws the right error when it is not
29-
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
29+
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
3030
pluck_data({'a': 'b'})
31-
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
31+
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
3232
pluck_data(None)
33-
with pytest.raises(ValueError, match='The "data" property is missing in the response.'):
33+
with pytest.raises(ValueError, match=r'The "data" property is missing in the response.'):
3434
pluck_data('{"a": "b"}')
3535

3636

uv.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)