Skip to content

Commit ff4ce79

Browse files
authored
Merge pull request #1378 from dbcli/RW/enable-bugbear-lint-rules
Enable flake8-bugbear ruff lint rules
2 parents e0b527e + d2e96b0 commit ff4ce79

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Upcoming (TBD)
44
Internal
55
--------
66
* Add mypy to Pull Request template.
7+
* Enable flake8-bugbear lint rules.
78

89

910
1.40.0 (2025/10/14)

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@ target-version = 'py39'
6262
line-length = 140
6363

6464
[tool.ruff.lint]
65-
select = ['A', 'I', 'E', 'W', 'F', 'C4', 'PIE', 'TID']
65+
select = ['A', 'B', 'I', 'E', 'W', 'F', 'C4', 'PIE', 'TID']
6666
ignore = [
67+
'B005', # Multi-character strip()
68+
'B006', # TODO: Mutable data structures for argument defaults
69+
'B007', # TODO: Variable unused
70+
'B015', # TODO: Pointless comparison
71+
'B904', # TODO: Raise exceptions with "raise ... from err"
6772
'E401', # Multiple imports on one line
6873
'E402', # Module level import not at top of file
6974
'PIE808', # range() starting with 0

0 commit comments

Comments
 (0)