add ruff and pyright flake checks
This commit is contained in:
parent
42cf3f75dc
commit
7c9b42fe56
8 changed files with 125 additions and 19 deletions
|
|
@ -14,7 +14,6 @@ from fastapi.security import (
|
|||
HTTPBasicCredentials,
|
||||
HTTPBearer,
|
||||
)
|
||||
from prometheus_client import start_http_server
|
||||
from prometheus_fastapi_instrumentator import Instrumentator
|
||||
|
||||
from ops_bot import alertmanager, aws, pagerduty
|
||||
|
|
@ -101,8 +100,7 @@ class Authorizer(Protocol):
|
|||
request: Request,
|
||||
basic_credentials: Optional[HTTPBasicCredentials],
|
||||
bearer_credentials: Optional[HTTPAuthorizationCredentials],
|
||||
) -> bool:
|
||||
...
|
||||
) -> bool: ...
|
||||
|
||||
|
||||
class ParseHandler(Protocol):
|
||||
|
|
@ -111,8 +109,7 @@ class ParseHandler(Protocol):
|
|||
route: RoutingKey,
|
||||
payload: Any,
|
||||
request: Request,
|
||||
) -> List[Tuple[str, str]]:
|
||||
...
|
||||
) -> List[Tuple[str, str]]: ...
|
||||
|
||||
|
||||
handlers: Dict[str, Tuple[Authorizer, ParseHandler]] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue