lint fixes and docstring arg fixes
# FLEDGE_END
import logging
-import pkg_resources
-import json
import asyncio
-
-from aiohttp import web
+import json
from typing import List
+import pkg_resources
+from aiohttp import web
from fledge.common import logger
from fledge.common.audit_logger import AuditLogger
@@ -53,7 +52,7 @@ async def get_packages(request: web.Request) -> web.Response:
async def install_package(request: web.Request) -> web.Response:
"""
Args:
- Request: '{ "package" : "numpy",
+ request: '{ "package" : "numpy",
"version" : "1.2" #optional
}'
@@ -106,7 +105,8 @@ async def install_package(request: web.Request) -> web.Response:
audit_message["version"] = input_package_version
await pip_audit_log.information('PIPIN', audit_message)
except:
- _LOGGER.exception("Failed to log the audit entry for PIPIN, for package {} install", format(input_package_name))
+ _LOGGER.exception("Failed to log the audit entry for PIPIN, for package {} install", format(
+ input_package_name))
response = "Package {} version {} installed successfully.".format(input_package_name, input_package_version)
if not input_package_version:
