Commit e553ad49 authored by Samuel GAIST's avatar Samuel GAIST

[__init__] Pre-commit cleanup

parent ef12a8f6
......@@ -33,8 +33,8 @@
# #
###################################################################################
# see https://docs.python.org/3/library/pkgutil.html
from pkgutil import extend_path
__path__ = extend_path(__path__, __name__)
......@@ -34,14 +34,12 @@
###################################################################################
"""Schema validation for BEAT JSON I/O"""
import os
import pkg_resources
import six
import simplejson as json
import jsonschema
import pkg_resources
import simplejson as json
import six
from beat.backend.python.utils import error_on_duplicate_key_hook
......@@ -98,7 +96,7 @@ def load_schema(schema_name, version=1):
try:
schema = json.loads(data)
except json.errors.JSONDecodeError:
print("Invalid json:\n {data}".format(data))
print("Invalid json:\n {}".format(data))
raise
basedir = os.path.realpath(os.path.dirname(fname))
......
......@@ -35,13 +35,14 @@
# Basic setup for slow tests
import logging
import os
import sys
import subprocess as sp # nosec
import shutil
import subprocess as sp # nosec
import sys
import tempfile
import pkg_resources
import logging
if sys.platform == "darwin":
tmp_prefix = tempfile.mkdtemp(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment