-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathpyproject.toml
135 lines (123 loc) · 2.49 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
[build-system]
requires = ["setuptools>=61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "span_marker"
description = "Named Entity Recognition using Span Markers"
readme = "README.md"
requires-python = ">=3.9"
license = {text = "Apache-2.0"}
keywords = [
"data-science",
"natural-language-processing",
"artificial-intelligence",
"mlops",
"nlp",
"machine-learning",
"transformers"
]
authors = [
{name = "Tom Aarsen"}
]
maintainers = [
{name = "Tom Aarsen"}
]
dependencies = [
"torch",
"accelerate",
"transformers>=4.23.0,<5", # required for EvalPrediction.inputs
"datasets>=2.14.0", # required for sorting with multiple columns
"packaging>=20.0",
"evaluate",
"seqeval",
"scikit-learn",
"jinja2",
"huggingface_hub>=0.24.0"
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"pre-commit",
"ruff",
"black",
"pytest",
"pytest-cov",
"spacy"
]
docs = [
"nltk_theme",
"sphinx==6.1.3",
"lxml==4.9.2",
"m2r2==0.3.3.post2",
"better-apidoc==0.3.2",
"nbsphinx==0.9.1",
"nbconvert<7",
"pandoc<3",
"ipython",
"spacy" # Required to build the spaCy integration docs
]
wandb = [
"wandb"
]
codecarbon = [
"codecarbon"
]
[project.urls]
Documentation = "https://tomaarsen.github.io/SpanMarkerNER"
Repository = "https://github.com/tomaarsen/SpanMarkerNER"
[tool.setuptools.packages.find]
include = ["span_marker"]
[tool.setuptools.dynamic]
version = {attr = "span_marker.__version__"}
[tool.pytest.ini_options]
testpaths = [
"tests"
]
filterwarnings = [
"ignore::DeprecationWarning:tensorboard.*:"
]
addopts = "--cov=span_marker --durations=10"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if _TYPE_CHECKING:",
"if typing.TYPE_CHECKING:"
]
[tool.isort]
profile = "black"
[tool.ruff]
# Ignore line length violations
ignore = ["E501"]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".hg",
".mypy_cache",
".nox",
".pants.d",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.per-file-ignores]
# Ignore imported but unused;
"__init__.py" = ["F401"]
[tool.black]
line-length = 120