-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
105 lines (90 loc) · 2.39 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
[tool.poetry]
name = "cprex"
version = "0.4.2"
description = "Chemical Properties Relation Extraction"
authors = ["Jonas Renault <jonasrenault@gmail.com>", "Lucie Chasseur <lucie.chasseur@inria.fr>"]
readme = "README.md"
license = "MIT"
homepage = "https://github.com/jonasrenault/cprex#readme"
repository = "https://github.com/jonasrenault/cprex"
keywords = ["pubchem", "crawler", "chemistry", "machine-learning", "relation-extraction", "named-entity-extraction", "deep-learning", "transformers", "spacy", "scientific-articles"]
[tool.poetry.dependencies]
python = "^3.11,<3.12.4"
torch = [
{version = "^2.2.1", platform="darwin", source="pypi"},
{version = "^2.2.1", platform="linux", source="pypi"}
]
requests = "^2.31.0"
ratelimit = "^2.2.1"
tqdm = "^4.66.2"
click = "^8.1.7"
beautifulsoup4 = "^4.12.3"
lxml = "^5.1.0"
pandas = "^2.2.1"
spacy = "^3.7.4"
spacy-transformers = "^1.3.4"
transformers = ">=3.4.0,<4.37.0"
scikit-learn = "^1.4.1.post1"
grobid-quantities-client = "^0.4.0"
streamlit = "^1.35.0"
numpy = "^1.26.4"
streamlit-extras = "^0.4.3"
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.6.2"
ruff = "^0.3.0"
black = "^24.2.0"
mypy = "^1.8.0"
bandit = "^1.7.7"
jupyterlab = "^4.1.3"
pytest = "^8.0.2"
watchdog = "^4.0.1"
[tool.poetry.group.models]
optional = true
[tool.poetry.group.models.dependencies]
en_core_web_sm = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1.tar.gz"}
[tool.poetry.group.stubs]
optional = true
[tool.poetry.group.stubs.dependencies]
types-requests = "^2.31.0.20240218"
types-tqdm = "^4.66.0.20240106"
pandas-stubs = "^2.2.0.240218"
types-beautifulsoup4 = "^4.12.0.20240229"
[[tool.poetry.source]]
name = "torchcpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
cprex = "cprex.commands:cli"
[tool.black]
line_length = 90
target_version = ['py310']
[tool.ruff]
exclude = [
".venv",
".git",
"__pycache__",
"build",
"dist",
"venv",
]
src = ["cprex", "tests"]
line-length = 90
[tool.ruff.lint]
ignore-init-module-imports = true
ignore = []
select = [
"E",
"F",
"W",
"I001",
]
[tool.mypy]
files = ["cprex"]
exclude = ["cprex/parser/"]
disable_error_code = ["import-untyped"]
[[tool.mypy.overrides]]
module = "cprex.parser.*"
follow_imports = 'silent'