-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
211 lines (191 loc) · 4.8 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
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
[build-system]
requires = ["setuptools>=61.0.0", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[project]
name = "dacy"
version = "2.7.8"
description = "A Danish pipeline trained in SpaCy that has achieved State-of-the-Art performance on all dependency parsing, NER and POS-tagging for Danish"
authors = [
{ name = "Kenneth Enevoldsen", email = "kennethcenevoldsen@gmail.com" },
{ name = "Lasse Hansen" },
{ name = "Emil Jessen" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
keywords = ["nlp", "danish", "spacy-universe"]
requires-python = ">=3.9"
dependencies = [
"spacy-wrap>=1.4.1",
"spacy-experimental>=0.6.2",
"spacy[transformers]>=3.2.0",
"pandas>=1.0.0",
"tqdm>=4.42.1",
]
[project.urls]
homepage = "https://centre-for-humanities-computing.github.io/DaCy/"
documentation = "https://centre-for-humanities-computing.github.io/DaCy/"
repository = "https://github.com/centre-for-humanities-computing/DaCy"
[project.license]
file = "LICENSE"
name = "Apache License 2.0"
[project.optional-dependencies]
dev = [
"cruft>=2.0.0",
"pyright>=1.1.339",
"ruff>=0.0.270",
]
tests = ["pytest>=7.1.2", "pytest-cov>=3.0.0", "pytest-instafail>=0.4.2"]
docs = [
"sphinx==5.3.0",
"furo>=2022.12.7", # theme
"sphinx-copybutton>=0.5.1",
"sphinxext-opengraph>=0.7.3",
"sphinx_design>=0.3.0",
"sphinx_togglebutton>=0.2.3",
"myst-nb>=0.6.0", # for rendering notebooks
"sphinxcontrib-bibtex>=2.0.0",
# required for building the docs with references
# potentially see https://sourceforge.net/p/docutils/patches/195/
# and related issues
# not possible to upgrade to >0.20.0 as sphinx <7 is required
# for most of the extensions and it is not compatible with
# docutils >0.20.0
"docutils==0.17.1",
# for tutorials
"jupyter>=1.0.0",
"wikidata>=0.7.0",
# sentiment analysis
"asent>=0.4.2",
"augmenty>=1.0.2",
# for the textdescriptives tutorial
"textdescriptives>=2.1.0",
"seaborn>=0.11.2",
# for performance notebooks
"altair>=4.1.0",
"datasets>=1.14.0",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.entry-points.spacy_factories]
"dacy/emotion" = "dacy.sentiment.wrapped_models:make_emotion_transformer"
"dacy/hatespeech_classification" = "dacy.hate_speech.wrapped_models:make_offensive_transformer"
"dacy/ner" = "dacy.ner.wrapped_models"
"dacy/ner-fine-grained" = "dacy.ner.fine_grained"
[tool.setuptools.package-data]
"*" = ["*.csv"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.coverage.run]
omit = ["**/tests/*", "**/about.py", "**/dev/*"]
[tool.pyright]
exclude = [".*venv*"]
pythonPlatform = "Darwin"
[tool.ruff]
# extend-include = ["*.ipynb"]
# Enable pycodestyle (`E`) and Pyflakes (`F`) codes by default.
select = [
"A",
"ANN",
"ARG",
"B",
"C4",
"COM",
"D417",
"E",
"ERA",
"F",
"I",
"ICN",
"NPY001",
"PD002",
"PIE",
"PLE",
"PLW",
"PT",
"UP",
"Q",
"PTH",
"RSE",
"RET",
"RUF",
"SIM",
"W",
]
ignore = [
"ANN101",
"ANN401",
"E402",
"E501",
"F401",
"F841",
"RET504",
"ANN202",
"COM812",
]
ignore-init-module-imports = true
# Allow autofix for all enabled rules (when `--fix`) is provided.
unfixable = ["ERA"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"__init__.py",
".venv",
".env",
".git",
"__pycache__",
"dev/**",
"training/main/**",
"training/ner_fine_grained/**",
"papers/DaCy-A-Unified-Framework-for-Danish-NLP/**",
"docs/performance_testing_utils/**",
]
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
target-version = "py38"
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.flake8-annotations]
mypy-init-return = true
suppress-none-returning = true
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.semantic_release]
branch = "main"
version_toml = ["pyproject.toml:project.version"]
build_command = "python -m pip install build; python -m build"
[tool.setuptools]
include-package-data = true