mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-03 19:56:54 +00:00
Fix bugbear lints
This commit is contained in:
parent
c8801c129a
commit
b67ce03a4a
2 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ from flake8.plugins import reporter
|
|||
|
||||
|
||||
def _opts(**kwargs):
|
||||
kwargs.setdefault("quiet", 0),
|
||||
kwargs.setdefault("quiet", 0)
|
||||
kwargs.setdefault("color", "never")
|
||||
kwargs.setdefault("output_file", None)
|
||||
return argparse.Namespace(**kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue