Skip to content

Commit 42fc191

Browse files
Higher default value for the threshold
1 parent 95a6372 commit 42fc191

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
@@ -265,7 +265,7 @@ class FormatChecker(BaseTokenChecker, BaseRawFileChecker):
265265
{
266266
# default big enough to not trigger on pixel perfect web design
267267
# on big screen
268-
"default": "1e6",
268+
"default": "1e8",
269269
"type": "float",
270270
"metavar": "<float>",
271271
"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)