Skip to content

Commit 2cbc302

Browse files
Higher default value for the threshold
1 parent 35898de commit 2cbc302

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

pylint/checkers/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class FormatChecker(BaseTokenChecker, BaseRawFileChecker):
261261
{
262262
# default big enough to not trigger on pixel perfect web design
263263
# on big screen
264-
"default": "1e6",
264+
"default": "1e8",
265265
"type": "float",
266266
"metavar": "<float>",
267267
"help": (

tests/functional/b/bad_float/bad_float_engineering_notation.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
strict-engineering-notation = true
33
strict-scientific-notation = false
44
strict-underscore-notation = false
5+
float-notation-threshold=1e6

tests/functional/b/bad_float/bad_float_notation_default.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
strict-engineering-notation = false
33
strict-scientific-notation = false
44
strict-underscore-notation = false
5+
float-notation-threshold=1e6

tests/functional/b/bad_float/bad_float_pep515.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
strict-engineering-notation = false
33
strict-scientific-notation = false
44
strict-underscore-notation = true
5+
float-notation-threshold=1e6

tests/functional/b/bad_float/bad_float_scientific_notation.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
strict-engineering-notation = false
33
strict-scientific-notation = true
44
strict-underscore-notation = false
5+
float-notation-threshold=1e6

0 commit comments

Comments
 (0)