Skip to content

Commit 0113335

Browse files
committed
[CodeLinters] Disable Flake8 rule B042 as it is a minor, and it is also affected by false positive.
Rule Description: Exception class with `__init__` should pass all args to `super().__init__()` in order to work with `copy.copy()`. False Positive: PyCQA/flake8-bugbear#525
1 parent 2eace6f commit 0113335

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ ignore =
1515
# B028: Consider replacing f"'{foo}'" with f"{foo!r}".
1616
# Currently being disabled by flake8-bugbear. See https://github.com/PyCQA/flake8-bugbear/pull/333
1717
B028
18+
# B042: Exception class with `__init__` should pass all args to `super().__init__()` in order to work with `copy.copy()`.
19+
# Affected by false positive, https://github.com/PyCQA/flake8-bugbear/issues/525
20+
B042
1821
exclude =
1922
.tox,
2023
.git,

0 commit comments

Comments
 (0)