-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
88 lines (78 loc) · 2.33 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[tool.poetry]
name = "lcacollect-config"
version = "1.9.0"
description = "This package contains shared config and utils to be used across LCAcollect backends."
authors = ["Christian Kongsgaard <chrk@arkitema.com>", "Jacob Aagaard <jaa@it-minds.dk>"]
repository = "https://github.com/lcacollect/shared-config-backend"
license = "Apache-2.0"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
pydantic = "1.10.13"
strawberry-graphql = {extras = ["fastapi"], version = ">=0.209.0"}
fastapi-azure-auth = ">=4.0.0"
aiocache = "*"
SQLAlchemy = {version = "1.4.35", extras = ["asyncio"]}
sqlmodel = "0.0.8"
asyncpg = "^0.29.0"
sendgrid = "*"
requests = "*"
azure-identity = "*"
msgraph-sdk = "^1.2.0"
greenlet = "3.0.1"
[tool.poetry.group.dev.dependencies]
pytest = "^7.0"
pytest-env = "*"
pytest_httpx = "*"
pytest-asyncio = "*"
psycopg2-binary = "^2.9.3"
black = "^22.6.0"
mixer = "*"
isort = "^5.10.1"
pytest-mock = "^3.10.0"
pytest-cov = "^4.0.0"
[tool.poetry.extras]
database = ["SQLAlchemy", "sqlmodel", "asyncpg"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 120
target-version = ['py311']
[tool.isort]
profile = "black"
src_paths = ["src", "tests"]
[tool.pytest.ini_options]
#addopts = "--cov=src --cov-report=term-missing --cov-branch --cov-report=xml"
asyncio_mode = "auto"
console_output_style = "count"
pythonpath = "src"
required_plugins = ["pytest-cov>=4.0.0"]
testpaths = ["tests/"]
env = [
"SERVER_NAME=LCA Test",
"SERVER_HOST=http://test.com",
"PROJECT_NAME=LCA Test",
"POSTGRES_HOST=localhost",
"POSTGRES_USER=postgresuser",
"POSTGRES_PASSWORD=mypassword",
"POSTGRES_DB=lcacollect",
"POSTGRES_PORT=5632",
"AAD_OPENAPI_CLIENT_ID=PLACEHOLDER",
"AAD_APP_CLIENT_ID=PLACEHOLDER",
"AAD_TENANT_ID=PLACEHOLDER",
"AAD_TEST_CLIENT_SECRET=PLACEHOLDER",
"STORAGE_ACCOUNT_URL=PLACEHOLDER",
"ROUTER_URL=http://router.url",
"STORAGE_CONTAINER_NAME=PLACEHOLDER",
"STORAGE_ACCESS_KEY=PLACEHOLDER",
"STORAGE_BASE_PATH=test",
"SPECKLE_TOKEN=PLACEHOLDER",
"AAD_GRAPH_SECRET=PLACEHOLDER",
"DEFAULT_AD_FQDN=PLACEHOLDER",
"SENDGRID_SECRET=c2VjcmV0",
"EMAIL_NOTIFICATION_FROM=no-reply@arkitema.com",
"INTERNAL_EMAIL_DOMAINS_LIST=arkitema,cowi,cowicloud",
]
[tool.coverage.run]
omit=["src/exceptions/*.py"]