-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
48 lines (42 loc) · 1.18 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
[tool.poetry]
authors = ["alexisthethe <[email protected]>"]
description = "FastAPI project example"
name = "quickrun-fastapi"
version = "0.1.0"
[tool.poetry.dependencies]
SQLAlchemy = "^1.4.34"
alembic = "^1.7.7"
fastapi = "^0.75.1"
passlib = "^1.7.4"
python = "^3.9"
python-jose = "^3.3.0"
python-multipart = "^0.0.5"
uvicorn = "^0.17.6"
[tool.poetry.dev-dependencies]
PyYAML = "^6.0"
black = "^22.3.0"
flake8 = "^4.0.1"
ipython = "^8.2.0"
poethepoet = "^0.13.1"
pytest = "^7.1.1"
pytest-cov = "^3.0.0"
[tool.poe.tasks.start-api]
envfile = ".env.dev"
sequence = [
{cmd = "uvicorn app.main:app --port 8000 --reload"},
]
[tool.poe.tasks]
docker-build = [
{cmd = "poetry export -f requirements.txt --output requirements.txt"},
{cmd = "docker build -t quickrun-fastapi ."},
]
docker-run = "docker run -ti --rm -p 8000:80 --env-file .env.dev quickrun-fastapi"
lint = "flake8 app tests"
spec = {script = "app.commands:generate_spec_yaml()"}
test = "pytest -v --cov=./app --cov-report=term-missing tests"
[tool.poe.tasks.alembic-autogen]
args = ["name"]
cmd = "alembic revision --autogenerate -m '$name'"
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core>=1.0.0"]