Run ruff linter with autofixing.

This commit is contained in:
2024-05-22 15:18:44 -04:00
parent 796b052bfc
commit ccbe86623a
22 changed files with 22 additions and 72 deletions
+7 -9
View File
@@ -4,8 +4,6 @@
from __future__ import annotations
from typing import List
from pydantic import BaseModel
@@ -29,9 +27,9 @@ class Commit(BaseModel):
committer: Committer
verification: None
timestamp: str
added: List[str]
removed: List[str]
modified: List[str]
added: list[str]
removed: list[str]
modified: list[str]
class HeadCommit(BaseModel):
@@ -42,9 +40,9 @@ class HeadCommit(BaseModel):
committer: Committer
verification: None
timestamp: str
added: List[str]
removed: List[str]
modified: List[str]
added: list[str]
removed: list[str]
modified: list[str]
class Owner(BaseModel):
@@ -187,7 +185,7 @@ class GiteaWebhook(BaseModel):
before: str
after: str
compare_url: str
commits: List[Commit]
commits: list[Commit]
total_commits: int
head_commit: HeadCommit
repository: Repository