cleanup/rm pylint ignores

This commit is contained in:
2025-02-16 08:50:53 -05:00
parent 36975fa3f3
commit b24176b12f
17 changed files with 19 additions and 52 deletions

View File

@@ -1,5 +1,4 @@
#!/usr/bin/env python3.12
# pylint: disable=bare-except, broad-exception-caught, invalid-name
import logging
import regex
@@ -12,7 +11,7 @@ from fastapi.responses import JSONResponse
class AI(FastAPI):
"""AI Endpoints"""
def __init__(self, app: FastAPI,
my_util, constants): # pylint: disable=super-init-not-called
my_util, constants):
self.app: FastAPI = app
self.util = my_util
self.constants = constants
@@ -50,7 +49,7 @@ class AI(FastAPI):
timeout=ClientTimeout(connect=15, sock_read=30)) as out_request:
response = await out_request.json()
return JSONResponse(content=response)
except Exception as e: # pylint: disable=broad-exception-caught
except Exception as e:
logging.error("Error: %s", e)
return JSONResponse(status_code=500, content={
'err': True,
@@ -84,7 +83,7 @@ class AI(FastAPI):
timeout=ClientTimeout(connect=15, sock_read=30)) as out_request:
response = await out_request.json()
return JSONResponse(content=response)
except Exception as e: # pylint: disable=broad-exception-caught
except Exception as e:
logging.error("Error: %s", e)
return JSONResponse(status_code=500, content={
'err': True,