ruff: enable PLR rules and fix bug in my.github.gdpr._is_bot

This commit is contained in:
Dima Gerasimov 2024-08-28 00:29:06 +01:00 committed by karlicoss
parent b594377a59
commit d0df8e8f2d
2 changed files with 17 additions and 1 deletions

View file

@ -145,7 +145,7 @@ def _parse_repository(d: Dict) -> Event:
def _is_bot(user: Optional[str]) -> bool:
if user is None:
return False
return "[bot]" in "user"
return "[bot]" in user
def _parse_issue_comment(d: Dict) -> Event: