Run ruff linter with autofixing.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user