Skip to content

Commit b67ce03

Browse files
committed
Fix bugbear lints
1 parent c8801c1 commit b67ce03

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/flake8/checker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def _mp_init(argv: Sequence[str]) -> None:
7070
signal.signal(signal.SIGINT, signal.SIG_IGN)
7171

7272
try:
73-
_mp_plugins, _mp_options # for `fork` this'll already be set
73+
# for `fork` this'll already be set
74+
_mp_plugins, _mp_options # noqa: B018
7475
except NameError:
7576
plugins, options = parse_args(argv)
7677
_mp_plugins, _mp_options = plugins.checkers, options

tests/unit/plugins/reporter_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def _opts(**kwargs):
14-
kwargs.setdefault("quiet", 0),
14+
kwargs.setdefault("quiet", 0)
1515
kwargs.setdefault("color", "never")
1616
kwargs.setdefault("output_file", None)
1717
return argparse.Namespace(**kwargs)

0 commit comments

Comments
 (0)