-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
72 lines (64 loc) · 2.13 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
[tool.poetry]
name = "gen3userdatalibrary"
version = "1.0.0"
description = "Gen3 User Data Library Service"
authors = ["CTDS UChicago <[email protected]>"]
license = "Apache-2.0"
readme = "README.md"
packages = [{ include = "gen3userdatalibrary" }]
[tool.poetry.dependencies]
python = ">=3.9,<3.10.dev0"
requests = ">=2.31.0"
fastapi = ">=0.115.8"
cdislogging = ">=1.1.1"
gunicorn = ">=20.1.0"
gen3authz = ">=2.1.0"
uvicorn = ">=0.27.0"
authutils = ">=6.2.5"
alembic = ">=1.13.2"
sqlalchemy = { extras = ["asyncio"], version = ">=2.0.31" }
asyncpg = ">=0.29.0"
cdispyutils = ">=2.3.0"
# NOTE:
# for testing with updated libaries as git repos:
# foobar = {git = "https://github.com/uc-cdis/some-repo", rev = "feat/test"}
httpx = ">=0.23.3"
pytest-asyncio = ">=0.23.8"
jsonschema = ">=3.2.0"
pytest-mock = "^3.14.0"
[tool.poetry.group.dev.dependencies]
# <8.0.0 is temporary, try removing. It was causing issues because the
# underlying pytest-* libraries hadn't updated yet to fix some breaking changes
pytest = ">=7.3.2"
coverage = ">=7.3.2"
pytest-cov = ">=4.1.0"
isort = ">=5.12.0"
black = ">=23.10.0"
pylint = ">=3.0.1"
[tool.pytest.ini_options]
# Better default `pytest` command which adds coverage
#
# WARNING: overriding default `pytest` command to include all this coverage
# may interfere with some debuggers (like PyCharm's), so it may not stop
# on breakpoints. If you run into this issue, you can comment
# the addopts out below and then run the pytest command with all these options
# manually if you want to see coverage
# Fixes PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
asyncio_default_fixture_loop_scope = "function"
# see .coveragerc for what the coverage omits
addopts = [
"--import-mode=importlib",
"-vv",
"--cov-config=.coveragerc",
"--cov=gen3userdatalibrary",
"--cov-report=term-missing:skip-covered",
"--cov-fail-under=90",
"--cov-report=html:_coverage"
]
[tool.isort]
known_first_party = ["gen3userdatalibrary"]
profile = "black"
line_length = 88
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"