apply pre-commit rules

This commit is contained in:
Gareth Davidson
2023-01-02 00:01:45 +00:00
parent 6ad8310332
commit 7000e10bc0
71 changed files with 0 additions and 74 deletions
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from logging.config import fileConfig
import sqlmodel
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""first revision
Revision ID: 23e5fea252dd
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""v1 db structure
Revision ID: cd7de470586e
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""add auth_method to person
Revision ID: 6368515778c5
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""add_auth_method_to_ix_person_username
Revision ID: 0daec5f8135f
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Adds text labels table.
Revision ID: 067c4002f2d9
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""add_journal_table
Revision ID: 3358eb6834e6
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""post ref for work_package
Revision ID: d24b37426857
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""Added lang column for ISO-639-1 codes
Revision ID: ef0b52902560
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""add collective flag to task
Revision ID: 464ec4667aae
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""add field trusted api client
Revision ID: 73ce3675c1f5
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""name changes: person->user, post->message, work_package->task
Revision ID: abb47e9d145a
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
"""add deleted field to post
Revision ID: 8d269bc4fdbd
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from http import HTTPStatus
from pathlib import Path
from typing import Optional
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from http import HTTPStatus
from secrets import token_hex
from typing import Generator
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from fastapi import APIRouter
from oasst_backend.api.v1 import frontend_messages, frontend_users, messages, stats, tasks, text_labels, users
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from fastapi import APIRouter, Depends
from oasst_backend.api import deps
from oasst_backend.api.v1 import utils
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import datetime
from uuid import UUID
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
import datetime
from uuid import UUID
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from fastapi import APIRouter, Depends
from oasst_backend.api import deps
from oasst_backend.models import ApiClient
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import random
from typing import Any, Optional, Tuple
from uuid import UUID
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import pydantic
from fastapi import APIRouter, Depends, HTTPException
from fastapi.security.api_key import APIKey
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import datetime
from uuid import UUID
-2
View File
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
from http import HTTPStatus
from uuid import UUID
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from typing import Any, Dict, List, Optional, Union
from pydantic import AnyHttpUrl, BaseSettings, PostgresDsn, validator
-1
View File
@@ -1,2 +1 @@
# -*- coding: utf-8 -*-
__all__ = []
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from typing import Any, Dict, Generic, List, Optional, Type, TypeVar, Union
from fastapi.encoders import jsonable_encoder
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from oasst_backend.config import settings
from oasst_backend.exceptions import OasstError, OasstErrorCode
from sqlmodel import create_engine
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from enum import IntEnum
from http import HTTPStatus
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import enum
from typing import Literal, Optional
from uuid import UUID
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from .api_client import ApiClient
from .journal import Journal, JournalIntegration
from .message import Message
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from typing import Optional
from uuid import UUID, uuid4
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from typing import Literal
from oasst_backend.models.payload_column_type import payload_type
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from typing import Optional
from uuid import UUID, uuid1, uuid4
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from typing import Optional
from uuid import UUID, uuid4
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from typing import Optional
from uuid import UUID
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import json
from typing import Any, Generic, Type, TypeVar
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from typing import Optional
from uuid import UUID, uuid4
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from typing import Optional
from uuid import UUID, uuid4
-1
View File
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from typing import Optional
from uuid import UUID, uuid4
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
from datetime import datetime
from typing import Optional
from uuid import UUID
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import datetime
import random
from collections import defaultdict