Add flake8 to our test suite and fix all errors (#7379)
* Add flake8 to our test suite and fix all errors * Add some documentation
This commit is contained in:
parent
d2115f7d1c
commit
f7bdc54c69
15 changed files with 125 additions and 85 deletions
|
@ -1,10 +1,8 @@
|
|||
"""Convert raw KLE to JSON
|
||||
|
||||
"""
|
||||
import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
from argparse import FileType
|
||||
from decimal import Decimal
|
||||
from collections import OrderedDict
|
||||
|
||||
|
@ -23,7 +21,7 @@ class CustomJSONEncoder(json.JSONEncoder):
|
|||
return float(obj)
|
||||
except TypeError:
|
||||
pass
|
||||
return JSONEncoder.default(self, obj)
|
||||
return json.JSONEncoder.default(self, obj)
|
||||
|
||||
|
||||
@cli.argument('filename', help='The KLE raw txt to convert')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue