Add linters configs

This commit is contained in:
2022-01-01 20:13:14 +03:00
parent 3b54f80892
commit 19f6ed111b
18 changed files with 911 additions and 78 deletions

View File

@@ -11,10 +11,8 @@ class BaseMeta(ormar.ModelMeta):
class CachedFile(ormar.Model):
class Meta(BaseMeta):
tablename = "cached_files"
constraints = [
ormar.UniqueColumns('object_id','object_type')
]
constraints = [ormar.UniqueColumns("object_id", "object_type")]
id: int = ormar.Integer(primary_key=True) # type: ignore
object_id: int = ormar.Integer() # type: ignore
object_type: str = ormar.String(max_length=8) # type: ignore