Skip to content

Commit

Permalink
Fix bugbear lints
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmavirus24 committed Dec 20, 2023
1 parent c8801c1 commit b67ce03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/flake8/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def _mp_init(argv: Sequence[str]) -> None:
signal.signal(signal.SIGINT, signal.SIG_IGN)

try:
_mp_plugins, _mp_options # for `fork` this'll already be set
# for `fork` this'll already be set
_mp_plugins, _mp_options # noqa: B018
except NameError:
plugins, options = parse_args(argv)
_mp_plugins, _mp_options = plugins.checkers, options
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/plugins/reporter_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def _opts(**kwargs):
kwargs.setdefault("quiet", 0),
kwargs.setdefault("quiet", 0)
kwargs.setdefault("color", "never")
kwargs.setdefault("output_file", None)
return argparse.Namespace(**kwargs)
Expand Down

0 comments on commit b67ce03

Please sign in to comment.