-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
139 lines (126 loc) · 3.37 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[build-system]
requires = ["setuptools", "setuptools-scm", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cogstack-model-serve"
authors = [{name = "Xi Bai", email = "[email protected]"}]
description = "A model serving systecm for CogStack NLP solutions"
requires-python = ">=3.8"
dynamic = ["version"]
dependencies = [
"medcat~=1.12.1",
"transformers<4.42.0",
"blis<1.0.0",
"fastapi~=0.110.3",
"uvicorn~=0.29.0",
"python-multipart~=0.0.5",
"ijson~=3.1.4",
"python-dotenv~=0.20.0",
"mlflow~=2.16.2",
"psycopg2-binary~=2.9.4",
"boto3~=1.28.84",
"typer~=0.12.3",
"prometheus-fastapi-instrumentator~=5.11.2",
"sentencepiece~=0.2.0",
"slowapi~=0.1.7",
"graypy~=2.1.0",
"fastapi-users~=11.0.0",
"fastapi-users-db-sqlalchemy~=5.0.0",
"asyncpg~=0.27.0",
"aiosqlite~=0.19.0",
"evaluate~=0.4.1",
"websockets~=12.0",
"pynvml~=11.5.3",
"toml~=0.10.2",
"peft<0.14.0"
]
readme = "README.md"
keywords = ["natural-language-processing", "electronic-health-records", "clinical-data"]
license = {text = "Elastic License 2.0"}
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Framework :: FastAPI",
]
[project.urls]
Homepage = "https://github.com/CogStack/CogStack-ModelServe"
Documentation = "https://cogstack.github.io/CogStack-ModelServe/docs/cogstack_model_serve_apis.html"
[project.optional-dependencies]
dev = [
"pytest~=7.1.2",
"pytest-mock~=3.7.0",
"pytest-timeout~=2.1.0",
"pytest-random-order~=1.1.0",
"pytest-asyncio~=0.23.7",
"pytest-cov~=4.1.0",
"pytest-bdd~=7.2.0",
"httpx~=0.24.1",
"mypy==1.8.0",
"ruff==0.6.9",
"locust~=2.11.0",
"typer-cli~=0.12.3",
"types-toml==0.10.8.20240310",
]
[tool.setuptools]
packages = ["app"]
[tool.setuptools.dynamic]
version = {attr = "app.__version__"}
[project.scripts]
cms = "app.cli.cli:cmd_app"
[tool.ruff]
include = [
"app/model_services/*.py",
"app/management/*.py",
"app/processors/*.py",
"app/api/*.py",
"app/api/routers/*.py",
"app/api/auth/*.py",
"app/cli/*.py",
"app/trainers/*.py",
"app/*.py",
"scripts/generate_annotations.py",
"scripts/hf_model_packager.py",
"scripts/medcat_concept_diff.py",
"scripts/medcat_config_diff.py",
"scripts/remove_model_version.py",
"scripts/generate_annotations.py",
"tests/",
]
line-length = 120
indent-width = 4
target-version = "py310"
[tool.ruff.lint]
select = ["E", "F", "W", "C90"]
ignore = ["E501", "E226", "C901"]
fixable = ["ALL"]
unfixable = []
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
docstring-code-format = false
docstring-code-line-length = "dynamic"
[tool.mypy]
ignore_missing_imports = true
no_implicit_optional = true
allow_redefinition = true
follow_imports = "silent"
warn_redundant_casts = true
warn_unused_ignores = true
check_untyped_defs = true
no_implicit_reexport = true
disallow_untyped_defs = true
disable_error_code = "method-assign"
plugins = [
"pydantic.mypy"
]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.pytest.ini_options]
pythonpath = "./app"