diff --git a/changelog.md b/changelog.md index 61172cd8..b7a4b77f 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,7 @@ Upcoming (TBD) Internal -------- * Add mypy to Pull Request template. +* Enable flake8-bugbear lint rules. 1.40.0 (2025/10/14) diff --git a/pyproject.toml b/pyproject.toml index 25117db8..40ca26e0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -62,8 +62,13 @@ target-version = 'py39' line-length = 140 [tool.ruff.lint] -select = ['A', 'I', 'E', 'W', 'F', 'C4', 'PIE', 'TID'] +select = ['A', 'B', 'I', 'E', 'W', 'F', 'C4', 'PIE', 'TID'] ignore = [ + 'B005', # Multi-character strip() + 'B006', # TODO: Mutable data structures for argument defaults + 'B007', # TODO: Variable unused + 'B015', # TODO: Pointless comparison + 'B904', # TODO: Raise exceptions with "raise ... from err" 'E401', # Multiple imports on one line 'E402', # Module level import not at top of file 'PIE808', # range() starting with 0