add ruff and pyright flake checks

This commit is contained in:
Abel Luck 2026-03-05 16:08:31 +01:00
parent 42cf3f75dc
commit 7c9b42fe56
8 changed files with 125 additions and 19 deletions

View file

@ -1,6 +1,6 @@
import logging
import re
from typing import Any, List, Optional, Tuple
from typing import Any, List, Optional, Tuple, cast
import attr
from fastapi import Request
@ -47,8 +47,9 @@ async def handle_event(x_gitlab_event: str, payload: Any) -> List[Tuple[str, str
nonlocal aborted
aborted = True
action_fields = cast(Any, Action)
base_args = {
**{field.key: field for field in Action if field.key.isupper()},
**{field.key: field for field in action_fields if field.key.isupper()},
**OTHER_ENUMS,
"util": TemplateUtil,
}