-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
184 lines (165 loc) · 3.97 KB
/
pyproject.toml
File metadata and controls
184 lines (165 loc) · 3.97 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
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[project]
name = "pymusas"
version = "0.4.1"
description = "PYthon Multilingual Ucrel Semantic Analysis System"
authors = [
{ name = "UCREL Research Centre", email = "ucrel@lancaster.ac.uk" },
]
license = "Apache-2.0"
license-files = [
"LICENSE",
]
keywords = [
"usas",
"USAS",
"UCREL",
"ucrel",
"semantics",
]
classifiers = [
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
]
requires-python = ">=3.10, <3.15"
dependencies = [
"requests>=2.13.0,<3.0",
"spacy>=3.8.13, != 3.8.14 ; python_version >= \"3.14\"",
"spacy>=3.1.4 ; python_version < \"3.14\"",
"srsly>=2.4.1,<3.0",
"tqdm>=4.50.0,<5.0",
"typer>=0.3.0,<1.0.0",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.optional-dependencies]
neural = [
"torch>=2.2,<3.0",
"transformers>=4.0,<6.0",
"wsd-torch-models>0.1.1,<1.0",
]
[project.urls]
Homepage = "https://ucrel.github.io/pymusas/"
Documentation = "https://ucrel.github.io/pymusas/api/base"
Repository = "https://github.com/UCREL/pymusas"
Issues = "https://github.com/UCREL/pymusas/issues"
Changelog = "https://github.com/UCREL/pymusas/blob/main/CHANGELOG.md"
[project.entry-points.spacy_factories]
pymusas_rule_based_tagger = "pymusas.spacy_api.taggers.rule_based:RuleBasedTagger"
pymusas_neural_tagger = "pymusas.spacy_api.taggers.neural:NeuralTagger"
pymusas_hybrid_tagger = "pymusas.spacy_api.taggers.hybrid:HybridTagger"
[dependency-groups]
dev = [
"coverage[toml]>=6.0.0",
"datasets>=4.4.2",
"flake8>=3.8",
"isort>=6.0",
"mypy>=1.12",
"psutil>=7.2.1",
"pytest>=6.0,!=7.1.0,!=8.1.0,<9.0.2",
"responses>=0.25.7",
"tomli-w>=1.2.0",
"tomli ; python_version == \"3.10\"",
"types-psutil>=7.2.1.20251231",
"types-requests>=2.32.4.20250913",
]
[build-system]
requires = [
"uv_build>=0.9.6,<0.12.0",
]
build-backend = "uv_build"
[tool.uv]
default-groups = "all"
[tool.uv.sources]
torch = { index = "pytorch" }
[[tool.uv.index]]
name = "pytorch"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.build-backend]
module-name = "pymusas"
module-root = ""
[tool.isort]
known_first_party = "pymusas"
known_third_party = [
"spacy",
"srsly",
"tqdm",
"requests",
"pytest",
"responses",
"pydoc_markdown",
"transformers",
"torch",
"wsd_torch_models",
"tomli_w",
]
force_sort_within_sections = true
multi_line_output = 3
use_parentheses = true
force_grid_wrap = 0
include_trailing_comma = true
lines_after_imports = 2
line_length = 119
[tool.mypy]
files = [
"tests/",
"pymusas/",
"scripts/",
"benchmarks"
]
exclude = [
"scripts/py2md.py",
]
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_decorators = false
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
warn_unreachable = true
allow_untyped_globals = false
allow_redefinition = false
local_partial_types = true
strict_equality = true
[[tool.mypy.overrides]]
module = [
"urllib3.*",
"tqdm.*",
"pydoc_markdown.*",
"spacy.vocab",
"srsly.*"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["datasets.*"]
follow_untyped_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = [
"tests/unit_tests",
]
[tool.coverage.run]
branch = true
source = [
"pymusas",
]
command_line = "-m pytest"
[tool.coverage.report]
show_missing = true
[tool.coverage.json]
output = "coverage.json"
[tool.coverage.xml]
output = "coverage.xml"