Isorted files.

This commit is contained in:
peacememories 2022-10-31 22:11:05 +01:00
parent 8b488606c0
commit 8b0675381d
5 changed files with 33 additions and 9 deletions

View file

@ -7,3 +7,7 @@ repos:
rev: "v0.982" # Use the sha / tag you want to point at
hooks:
- id: mypy
- repo: https://github.com/PyCQA/isort
rev: "5.10.1"
hooks:
- id: isort

13
main.py
View file

@ -1,13 +1,14 @@
import datetime
import typing
from fastapi import FastAPI, APIRouter
import tortoise.timezone
from fastapi import APIRouter, FastAPI
from pydantic import BaseModel, Field, validator
from tortoise.contrib.fastapi import HTTPNotFoundError, register_tortoise
from tortoise.expressions import Q
import database
import models
import datetime
from tortoise.contrib.fastapi import HTTPNotFoundError, register_tortoise
import tortoise.timezone
from tortoise.expressions import Q
app = FastAPI()

View file

@ -1,6 +1,6 @@
from tortoise.models import Model
import tortoise.models as models
import tortoise.fields as fields
import tortoise.models as models
from tortoise.models import Model
class Admin(Model):

20
poetry.lock generated
View file

@ -238,6 +238,20 @@ category = "main"
optional = false
python-versions = ">=3.6.2,<4.0"
[[package]]
name = "isort"
version = "5.10.1"
description = "A Python utility / library to sort Python imports."
category = "dev"
optional = false
python-versions = ">=3.6.1,<4.0"
[package.extras]
colors = ["colorama (>=0.4.3,<0.5.0)"]
pipfile-deprecated-finder = ["pipreqs", "requirementslib"]
plugins = ["setuptools"]
requirements-deprecated-finder = ["pip-api", "pipreqs"]
[[package]]
name = "itsdangerous"
version = "2.1.2"
@ -632,7 +646,7 @@ python-versions = ">=3.7"
[metadata]
lock-version = "1.1"
python-versions = "^3.10"
content-hash = "1700d13a33b0ed7a6d89a0d5607d7029e85c5e24c24b0d78fff0ed2262b4a6e2"
content-hash = "560ebb2f16d01cb408ca6c9edaec2d4f65da685ae850bae0169f8a3892b0ac25"
[metadata.files]
aerich = [
@ -754,6 +768,10 @@ iso8601 = [
{file = "iso8601-1.1.0-py3-none-any.whl", hash = "sha256:8400e90141bf792bce2634df533dc57e3bee19ea120a87bebcd3da89a58ad73f"},
{file = "iso8601-1.1.0.tar.gz", hash = "sha256:32811e7b81deee2063ea6d2e94f8819a86d1f3811e49d23623a41fa832bef03f"},
]
isort = [
{file = "isort-5.10.1-py3-none-any.whl", hash = "sha256:6f62d78e2f89b4500b080fe3a81690850cd254227f27f75c3a0c491a1f351ba7"},
{file = "isort-5.10.1.tar.gz", hash = "sha256:e8443a5e7a020e9d7f97f1d7d9cd17c88bcb3bc7e218bf9cf5095fe550be2951"},
]
itsdangerous = [
{file = "itsdangerous-2.1.2-py3-none-any.whl", hash = "sha256:2c2349112351b88699d8d4b6b075022c0808887cb7ad10069318a8b0bc88db44"},
{file = "itsdangerous-2.1.2.tar.gz", hash = "sha256:5dbbc68b317e5e42f327f9021763545dc3fc3bfe22e6deb96aaf1fc38874156a"},

View file

@ -17,6 +17,7 @@ autopep8 = "^2.0.0"
mypy = "^0.982"
pre-commit = "^2.20.0"
sqlalchemy-stubs = "^0.4"
isort = "^5.10.1"
[tool.aerich]