From 61d33dae2885379164edc8279434574cae51be9a Mon Sep 17 00:00:00 2001 From: tr4nt0r <4445816+tr4nt0r@users.noreply.github.com> Date: Sun, 9 Nov 2025 12:40:04 +0100 Subject: [PATCH] Enable flake8-bugbear (B) and apply fix --- pyproject.toml | 2 +- tests/test_ratelimits.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9a6e34a..65ca2fb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,7 +48,7 @@ line-length = 88 target-version = "py311" [tool.ruff.lint] -select = ["E4", "E7", "E9", "F", "UP", "S", "ANN", "C4", "I", "RUF", "SIM", "PLR", "ERA", "RET"] +select = ["E4", "E7", "E9", "F", "UP", "S", "ANN", "C4", "I", "RUF", "SIM", "PLR", "ERA", "RET", "B"] # select = ["ALL"] ignore = ["ANN003", "ANN401", "D", "COM"] diff --git a/tests/test_ratelimits.py b/tests/test_ratelimits.py index 0cbc0ad..8cd7ad9 100644 --- a/tests/test_ratelimits.py +++ b/tests/test_ratelimits.py @@ -135,7 +135,7 @@ async def make_request() -> None: # Make as many requests as possible without exceeding max_request_num = xbl_client.people.RATE_LIMITS["burst"] - for i in range(max_request_num): + for _ in range(max_request_num): await make_request() # Make another request, ensure that it raises the exception.