test-ready
Some checks failed
deploy to v2 / test (push) Failing after 21s
deploy to v2 / deploy (push) Has been skipped

This commit is contained in:
Untone 2024-02-05 16:01:26 +03:00
parent 28a363663d
commit 89ab5545ae
4 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,4 @@
name: 'deploy' name: 'deploy to v2'
on: [push] on: [push]
jobs: jobs:

View File

@ -13,7 +13,7 @@ repos:
- id: check-merge-conflict - id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.13 rev: v0.1.15
hooks: hooks:
- id: ruff - id: ruff
args: [--fix] args: [--fix]

View File

@ -28,6 +28,7 @@ mypy = { version = "^1.7", python = ">=3.12" }
isort = "^5.13.2" isort = "^5.13.2"
pyright = "^1.1.341" pyright = "^1.1.341"
pre-commit = "^3.6.0" pre-commit = "^3.6.0"
pytest-asyncio = "^0.23.4"
[tool.black] [tool.black]
line-length = 120 line-length = 120
@ -102,3 +103,13 @@ select = ["E4", "E7", "E9", "F"]
ignore = [] ignore = []
line-length = 120 line-length = 120
target-version = "py312" target-version = "py312"
[tool.pytest.ini_options]
pythonpath = [
"."
]
[tool.pytest]
python_files = "*_test.py"

View File

@ -3,8 +3,7 @@ from typing import Any, Callable, Dict, TypeVar
# from psycopg2.errors import UniqueViolation # from psycopg2.errors import UniqueViolation
from sqlalchemy import Column, Integer, create_engine from sqlalchemy import Column, Integer, create_engine
from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import Session, declarative_base
from sqlalchemy.orm import Session
from sqlalchemy.sql.schema import Table from sqlalchemy.sql.schema import Table
from settings import DB_URL from settings import DB_URL