@@ -315,6 +315,12 @@ def __init__(self, linter: PyLinter) -> None:
315
315
engineering = self .linter .config .strict_engineering_notation
316
316
underscore = self .linter .config .strict_underscore_notation
317
317
float_config = sum ([scientific , engineering , underscore ])
318
+ print (
319
+ f"scientific: { scientific } , "
320
+ f"engineering: { engineering } ,"
321
+ f" underscore; { underscore } "
322
+ f" float_config; { float_config } "
323
+ )
318
324
if float_config > 1 :
319
325
raise ValueError (
320
326
"Only one of strict-scientific-notation, "
@@ -330,6 +336,11 @@ def __init__(self, linter: PyLinter) -> None:
330
336
self .should_check_scientific_notation = scientific
331
337
self .should_check_engineering_notation = engineering
332
338
self .should_check_underscore_notation = underscore
339
+ print (
340
+ self .should_check_scientific_notation ,
341
+ self .should_check_engineering_notation ,
342
+ self .should_check_underscore_notation ,
343
+ )
333
344
334
345
def new_line (self , tokens : TokenWrapper , line_end : int , line_start : int ) -> None :
335
346
"""A new line has been encountered, process it if necessary."""
@@ -641,6 +652,17 @@ def raise_bad_float_notation(suggested: set[str]) -> None:
641
652
abs_value = abs (value )
642
653
has_underscore = "_" in string
643
654
has_exponent = "e" in string or "E" in string
655
+ print (
656
+ f"Checking { string } { line_num } : "
657
+ f"s:{ self .should_check_scientific_notation } "
658
+ f"e:{ self .should_check_engineering_notation } "
659
+ f"u;{ self .should_check_underscore_notation } "
660
+ f"has_underscore: { has_underscore } "
661
+ f"has_exponent: { has_exponent } "
662
+ f"abs_value: { abs_value } "
663
+ f"threshold: { threshold } "
664
+ f"strict_scientific_notation: { self .linter .config .strict_scientific_notation } "
665
+ )
644
666
if has_exponent :
645
667
if self .linter .config .strict_underscore_notation :
646
668
# If we have exponent it means it's not proper underscore
0 commit comments