Skip to content

Commit 7802a88

Browse files
Pieter EngelbrechtPierre-Sassoulas
Pieter Engelbrecht
authored andcommitted
Make fail under a float
1 parent 8430a67 commit 7802a88

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pylint/config/option.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def _multiple_choices_validating_option(opt, name, value):
6666
VALIDATORS = {
6767
"string": utils._unquote,
6868
"int": int,
69+
"float": float,
6970
"regexp": re.compile,
7071
"regexp_csv": _regexp_csv_validator,
7172
"csv": _csv_validator,

pylint/lint/pylinter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def make_options():
260260
"fail-under",
261261
{
262262
"default": 10,
263-
"type": "int",
263+
"type": "float",
264264
"metavar": "<score>",
265265
"help": "Specify a score threshold to be exceeded before program exits with error.",
266266
},

0 commit comments

Comments
 (0)