Skip to content

Commit

Permalink
Enable ruff/bugbear rules (B) by default
Browse files Browse the repository at this point in the history
For now, ignore these:
- B007
- B019
- B026
- B028
- B904
  • Loading branch information
DimitriPapadopoulos committed May 24, 2024
1 parent 7108c9f commit b7d0441
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ line-length = 88
select = [
# fix noqas in fsspec/implementations/http.py
"ASYNC",
# "B", enable in later PR
"B",
"I", # isort
"C4",
"G",
Expand All @@ -175,6 +175,17 @@ select = [
"SIM101",
]
ignore = [
# Loop control variable `loop` not used within loop body
"B007",
# Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
"B019",
# Star-arg unpacking after a keyword argument is strongly discouraged
"B026",
# No explicit `stacklevel` keyword argument found
"B028",
# Within an `except` clause, raise exceptions with `raise ... from err` or
# `raise ... from None` to distinguish them from errors in exception handling
"B904",
# Assigning lambda expression
"E731",
# Ambiguous variable names
Expand Down

0 comments on commit b7d0441

Please sign in to comment.