diff --git a/.vscode/settings.json b/.vscode/settings.json index 07cfc57ae..e60033e22 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -5,4 +5,8 @@ }, "python.linting.enabled": true, "python.linting.flake8Enabled": true, + "[python]": { + "editor.defaultFormatter": "ms-python.autopep8" + }, + "python.formatting.provider": "none", } \ No newline at end of file diff --git a/fedn/fedn/common/color_handler.py b/fedn/fedn/common/color_handler.py index 3a3d4316f..1708f3ee3 100644 --- a/fedn/fedn/common/color_handler.py +++ b/fedn/fedn/common/color_handler.py @@ -1,4 +1,5 @@ import logging + from termcolor import colored diff --git a/fedn/fedn/common/log_config.py b/fedn/fedn/common/log_config.py index fac964a84..22368818e 100644 --- a/fedn/fedn/common/log_config.py +++ b/fedn/fedn/common/log_config.py @@ -1,7 +1,10 @@ import logging import logging.config + import urllib3 + from fedn.common.color_handler import ColorizingStreamHandler + urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) logging.getLogger("urllib3").setLevel(logging.ERROR) diff --git a/fedn/fedn/network/clients/connect.py b/fedn/fedn/network/clients/connect.py index 07329ee3a..478844d26 100644 --- a/fedn/fedn/network/clients/connect.py +++ b/fedn/fedn/network/clients/connect.py @@ -10,6 +10,7 @@ from fedn.common.log_config import logger + class Status(enum.Enum): """ Enum for representing the status of a client assignment.""" Unassigned = 0 diff --git a/fedn/fedn/network/clients/package.py b/fedn/fedn/network/clients/package.py index a8e4fe1df..44a048ada 100644 --- a/fedn/fedn/network/clients/package.py +++ b/fedn/fedn/network/clients/package.py @@ -9,9 +9,10 @@ import requests import yaml +from fedn.common.log_config import logger from fedn.utils.checksum import sha from fedn.utils.dispatcher import Dispatcher -from fedn.common.log_config import logger + class PackageRuntime: """ PackageRuntime is used to download, validate and unpack compute packages.