@@ -307,20 +307,13 @@ class FormatChecker(BaseTokenChecker, BaseRawFileChecker):
307
307
),
308
308
)
309
309
310
- def __init__ (self , linter : PyLinter ) -> None :
311
- super ().__init__ (linter )
310
+ def open (self ) -> None :
312
311
self ._lines : dict [int , str ] = {}
313
312
self ._visited_lines : dict [int , Literal [1 , 2 ]] = {}
314
313
scientific = self .linter .config .strict_scientific_notation
315
314
engineering = self .linter .config .strict_engineering_notation
316
315
underscore = self .linter .config .strict_underscore_notation
317
316
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
- )
324
317
if float_config > 1 :
325
318
raise ValueError (
326
319
"Only one of strict-scientific-notation, "
@@ -336,11 +329,6 @@ def __init__(self, linter: PyLinter) -> None:
336
329
self .should_check_scientific_notation = scientific
337
330
self .should_check_engineering_notation = engineering
338
331
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
- )
344
332
345
333
def new_line (self , tokens : TokenWrapper , line_end : int , line_start : int ) -> None :
346
334
"""A new line has been encountered, process it if necessary."""
0 commit comments