Skip to content

Commit 19956be

Browse files
committed
Add missing values to options defined for PyLinter
1 parent 236313a commit 19956be

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pylint/lint/pylinter.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ def make_options() -> Tuple[Tuple[str, OptionDict], ...]:
368368
"enable",
369369
{
370370
"type": "csv",
371+
"default": (),
371372
"metavar": "<msg ids>",
372373
"short": "e",
373374
"group": "Messages control",
@@ -384,6 +385,7 @@ def make_options() -> Tuple[Tuple[str, OptionDict], ...]:
384385
{
385386
"type": "csv",
386387
"metavar": "<msg ids>",
388+
"default": (),
387389
"short": "d",
388390
"group": "Messages control",
389391
"help": "Disable the message, report, category or checker "
@@ -404,6 +406,7 @@ def make_options() -> Tuple[Tuple[str, OptionDict], ...]:
404406
"msg-template",
405407
{
406408
"type": "string",
409+
"default": "",
407410
"metavar": "<template>",
408411
"group": "Reports",
409412
"help": (
@@ -498,6 +501,8 @@ def make_options() -> Tuple[Tuple[str, OptionDict], ...]:
498501
"exit-zero",
499502
{
500503
"action": "store_true",
504+
"default": False,
505+
"metavar": "<flag>",
501506
"help": (
502507
"Always return a 0 (non-error) status code, even if "
503508
"lint errors are found. This is primarily useful in "
@@ -509,6 +514,8 @@ def make_options() -> Tuple[Tuple[str, OptionDict], ...]:
509514
"from-stdin",
510515
{
511516
"action": "store_true",
517+
"default": False,
518+
"metavar": "<flag>",
512519
"help": (
513520
"Interpret the stdin as a python script, whose filename "
514521
"needs to be passed as the module_or_package argument."

0 commit comments

Comments
 (0)