-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
68 lines (60 loc) · 1.8 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
62
63
64
65
66
67
68
[tool.poetry]
name = "gift-wishlist-backend"
version = "0.1.0"
description = "Rest API for wishlist application"
authors = ["Matthew Holmes <[email protected]>"]
[tool.poetry.dependencies]
python = "^3.9"
fastapi = "^0.109.1"
uvicorn = {extras = ["standard"], version = "^0.13.2"}
SQLAlchemy = {extras = ["mypy"], version = "^1.4.15"}
alembic = "^1.4.3"
pydantic = {extras = ["email"], version = "^1.7.3"}
python-jose = {extras = ["cryptography"], version = "^3.2.0"}
passlib = {extras = ["bcrypt"], version = "^1.7.4"}
python-multipart = "^0.0.5"
[tool.poetry.dev-dependencies]
black = "^20.8b1"
coverage = {extras = ["toml"], version = "^5.3.1"}
mypy = "^0.812"
flake8 = "^3.8.4"
pytest = "^6.2.1"
requests = "^2.25.1"
# TODO: Resolve how to add this as a production dependency
# Read this: https://python-poetry.org/docs/pyproject/#extras
psycopg2-binary = "^2.8.6"
isort = "^5.7.0"
[tool.poetry.scripts]
check-migrations = "app.database.check_migrations:main"
create-superuser = "app.database.create_superuser:main"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# https://docs.pytest.org/en/stable/customize.html#pyproject-toml
[tool.pytest.ini_options]
testpaths = [
"app/tests",
]
addopts = "--maxfail=2 -rf"
# https://coverage.readthedocs.io/en/coverage-5.3/config.html?highlight=pyproject#configuration-reference
[tool.coverage.run]
source = [
"app/api/",
"app/core/",
"app/crud/",
"app/database/",
"app/models/",
"app/routers/",
"app/schemas/",
"app/main.py",
]
omit = [
"app/database/check_migrations.py", # called when running dev server.
"app/database/create_superuser.py",
]
[tool.coverage.report]
precision = 2
show_missing = true
[tool.isort]
# https://pycqa.github.io/isort/docs/configuration/profiles/
profile = "black"