Skip to content

Commit 73c8386

Browse files
authored
test(ruff): enable flake8-bugbear rules (#87)
* test(ruff): enable flake8-bugbear rules * fix: unused loop control variable
1 parent fb1df8a commit 73c8386

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/my_fibonacci/sequence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
def fibonacci_sequence(n: int) -> list[int]:
55
"""Generate a Fibonacci sequence up to the given number of terms."""
66
sequence = [0, 1]
7-
for i in range(n - 1):
7+
for _ in range(n - 1):
88
sequence.append(sequence[-1] + sequence[-2])
99
return sequence[1:]
1010

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fail_under = 100
5252
omit = ["__main__.py"]
5353

5454
[tool.ruff.lint]
55-
extend-select = ["E", "W", "C90", "I", "N", "D", "UP", "ANN", "S", "A", "C4", "ICN", "INP", "PIE", "PT", "Q", "RET", "SIM", "TCH", "ARG", "ERA", "PL", "PERF"]
55+
extend-select = ["E", "W", "C90", "I", "N", "D", "UP", "ANN", "S", "B", "A", "C4", "ICN", "INP", "PIE", "PT", "Q", "RET", "SIM", "TCH", "ARG", "ERA", "PL", "PERF"]
5656
ignore = ["D211", "D212"]
5757

5858
[tool.ruff.per-file-ignores]

0 commit comments

Comments
 (0)