This repository has been archived by the owner on Dec 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
61 lines (54 loc) · 1.74 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[tool.isort]
profile = "black"
skip_glob = ["src/config/**/*.py"]
[tool.poe.tasks]
format = "black ."
"format:check" = "black --check ."
isort = "isort ."
"isort:check" = "isort --check ."
lint = "pylint --output-format colorized src/**/*.py"
"lint:check" = "pylint src/**/*.py"
"migration:up" = { "cmd" = "alembic upgrade head", "envfile" = ".env" }
"migration:down" = { "cmd" = "alembic downgrade head-1", "envfile" = ".env" }
"migration:test:up" = { "cmd" = "alembic upgrade head", "env" = { DATABASE_NAME = "oipie_tests" } }
"migration:test:down" = { "cmd" = "alembic downgrade head-1", "env" = { DATABASE_NAME = "oipie_tests" } }
"run:checks" = ["format:check", "lint:check", "isort:check"]
"start:dev" = "uvicorn src.main:app --reload"
test = "pytest"
"test:cov" = "pytest --cov=src"
"test:cov:html" = "pytest --cov=src --cov-report=html"
[tool.poe.tasks."migration:generate"]
cmd = "alembic revision --autogenerate -m $message"
args = [
{ name = "message", options = [
"-m",
"--message",
], required = true, help = "Migration's name" },
]
[tool.poetry]
name = "oipie-api-core"
version = "0.0.1"
description = ""
authors = [
"Jaume Moreno <[email protected]>",
"Jorge Bodega <[email protected]>",
]
readme = "README.md"
[tool.poetry.dependencies]
alembic = "1.8.1"
argon2-cffi = "21.3.0"
databases = { extras = ["asyncpg"], version = "0.6.1" }
fastapi = { extras = ["all"], version = "0.86.0" }
PyJWT = "2.6.0"
python = "^3.10"
SQLAlchemy = { extras = ["postgresql_psycopg2binary"], version = "1.4.44" }
[tool.poetry.group.dev.dependencies]
black = "22.10.0"
isort = "5.10.1"
pylint = "2.15.5"
pytest = "7.2.0"
pytest-cov = "4.0.0"
python-dotenv = "0.21.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"