diff options
author | Pieter Engelbrecht <pengelbrecht@rems2.com> | 2020-06-29 12:27:43 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2020-07-12 17:33:24 +0200 |
commit | 7802a8852dc3974a2771456a7f412239d4cd61b6 (patch) | |
tree | 1db876b8e211d6f4c2fa47cfb4cd381dc6ecf4ab | |
parent | 8430a67330945e91c6552e238b2cf55f9775fc9b (diff) | |
download | pylint-git-7802a8852dc3974a2771456a7f412239d4cd61b6.tar.gz |
Make fail under a float
-rw-r--r-- | pylint/config/option.py | 1 | ||||
-rw-r--r-- | pylint/lint/pylinter.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pylint/config/option.py b/pylint/config/option.py index 50242f623..74a335d61 100644 --- a/pylint/config/option.py +++ b/pylint/config/option.py @@ -66,6 +66,7 @@ def _multiple_choices_validating_option(opt, name, value): VALIDATORS = { "string": utils._unquote, "int": int, + "float": float, "regexp": re.compile, "regexp_csv": _regexp_csv_validator, "csv": _csv_validator, diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index 9d85b0c47..1254ac5a4 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -260,7 +260,7 @@ class PyLinter( "fail-under", { "default": 10, - "type": "int", + "type": "float", "metavar": "<score>", "help": "Specify a score threshold to be exceeded before program exits with error.", }, |