Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 29, 2024
1 parent 97d2ff0 commit 319b23c
Show file tree
Hide file tree
Showing 19 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions migration/versions/0c6eed52399f_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-06-11 10:12:39.465349
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migration/versions/48d00b4868c7_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-06-11 17:47:49.545536
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migration/versions/725589cc0adb_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-05-10 11:00:59.952790
"""

import sqlalchemy as sa
from alembic import op

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-05-02 23:57:37.004802
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migration/versions/804ce544203d_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-06-01 11:36:35.436792
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migration/versions/86f9d6304908_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-04-19 13:59:59.584998
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migration/versions/8db0b3c70d3d_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-06-11 17:45:07.399501
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 1 addition & 0 deletions migration/versions/f2d154c7bc55_.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Create Date: 2023-05-17 14:49:41.201539
"""

import sqlalchemy as sa
from alembic import op

Expand Down
1 change: 0 additions & 1 deletion src/app/services/uow/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
Натомість, він зберігає множину записів в рамках однієї транзакції
"""


from abc import ABC, abstractmethod

from src.app.repositories.absctract.bank_api import ABankInfoRepository
Expand Down
1 change: 1 addition & 0 deletions src/app/services/users.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
CRUD операції з User сутностями
"""

from src.app.domain.users import User
from src.app.services.uow.abstract import AbstractUnitOfWork
from src.auth.password import get_password_hash
Expand Down
1 change: 1 addition & 0 deletions src/auth/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Crypt configs
"""

import os

SECRET_KEY = os.getenv("SECRET_KEY")
Expand Down
1 change: 1 addition & 0 deletions src/auth/password.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Methods of password hashing and their comparison.
"""

from passlib.context import CryptContext

pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
Expand Down
1 change: 1 addition & 0 deletions src/auth/services.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
CRUD account methods
"""

from datetime import datetime, timedelta

from jose import JWTError, jwt
Expand Down
1 change: 1 addition & 0 deletions src/database.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Database Configuration
"""

import os

from fastapi import FastAPI
Expand Down
1 change: 1 addition & 0 deletions src/routers/users.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Users endpoints
"""

from fastapi import APIRouter, Depends

from src.app.domain.users import User
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Фікстури і інші структури, які використовуються у тестах
"""

import asyncio
import os

Expand Down
1 change: 1 addition & 0 deletions tests/integrations/auth_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Functional account tests
"""

import pytest
from httpx import AsyncClient

Expand Down
1 change: 1 addition & 0 deletions tests/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Поширені функції, які перевикористовуються в багатьох тестах.
Створені для того, щоб писати одинакового коду у різних файлах (DRY)
"""

import random

from httpx import AsyncClient
Expand Down
1 change: 1 addition & 0 deletions tests/unit/database_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Модульні тести бази даних
"""

import pytest
from sqlalchemy import text

Expand Down

0 comments on commit 319b23c

Please sign in to comment.