-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (85 loc) · 2.51 KB
/
pyproject.toml
File metadata and controls
95 lines (85 loc) · 2.51 KB
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
[project]
name = "radiotherapy-end2end"
dynamic = ["version"]
authors = [
{ name = "Machine Learning for Medical Language Lab @ CHIP", email = "Timothy.Miller@childrens.harvard.edu" },
]
description = "Transformers for Clinical NLP"
readme = "README.md"
requires-python = ">=3.9, <3.13"
dependencies = [
"anaforatools~=1.1.0",
"datasets~=2.21.0",
"fastapi~=0.115.2",
"httpx>=0.27.2",
"huggingface-hub>=0.9.0",
"nltk~=3.5",
"numpy~=2.0.2",
"pandas~=2.2.3",
"pydantic~=1.10.8",
"requests~=2.32.2",
"rich>=14.0.0",
"scikit-learn~=1.5.2",
"seqeval~=1.2.2",
"torch>=2.6",
"transformers[torch]~=4.20",
"tabulate",
"uvicorn[standard]~=0.32.0",
]
classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
]
[project.urls]
Homepage = "https://github.com/Machine-Learning-for-Medical-Language/cnlp_transformers/"
"Bug Tracker" = "https://github.com/Machine-Learning-for-Medical-Language/cnlp_transformers/issues"
[tool.setuptools_scm]
[tool.setuptools.packages.find]
where = ["src"]
include = ["cnlpt*"]
[dependency-groups]
lint = [
"ruff==0.11.8", # same as in pre-commit hooks and CI
]
build = ["build", "pip>=21.3", "twine"]
test = ["lorem-text>=3.0", "pytest"]
docs = ["sphinx", "sphinx-autodoc-typehints", "sphinx-rtd-theme", "sphobjinv"]
notebooks = ["ipykernel", "ipywidgets"]
dev = [
{ include-group = "build" },
{ include-group = "docs" },
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "notebooks" },
"pre-commit",
]
[tool.ruff.lint]
select = [
# ruff defaults
"E4",
"E7",
"E9",
"F",
# additional options
"I", # isort
"UP", # pyupgrade
"G", # logging
"FA", # future annotations
"PIE", # misc
"RUF", # misc
]
ignore = [
"G003", # string concatenation logging statements
"G004", # f-strings in logging statements
]
[tool.ruff.lint.pyupgrade]
# Preserve Union types, despite alternate 'X | Y' syntax being available via __future__ annotations module.
# This is necessary because fastAPI and pydantic parse type annotations at runtime, and since the new syntax is
# a python 3.10 feature they don't expect it in python 3.9.
# This can be removed if/when we stop supporting python 3.9.
keep-runtime-typing = true
[tool.uv]
cache-keys = [{ git = { commit = true, tags = true } }]