This repository has been archived by the owner on Jun 14, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
174 lines (156 loc) · 4.31 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
[project]
name = "argilla-server"
dynamic = ["version"]
description = "Open-source tool for exploring, labeling, and monitoring data for NLP projects."
readme = "README.md"
requires-python = ">=3.8,<3.11"
license = { text = "Apache-2.0" }
keywords = [
"data-science",
"natural-language-processing",
"text-labeling",
"data-annotation",
"artificial-intelligence",
"knowledged-graph",
"developers-tools",
"human-in-the-loop",
"mlops",
]
authors = [{ name = "argilla", email = "[email protected]" }]
maintainers = [{ name = "argilla", email = "[email protected]" }]
dependencies = [
# Basic dependencies
"fastapi >= 0.103.1,< 1.0.0",
"pydantic >= 1.10.7,< 2.0",
"uvicorn[standard] >= 0.15.0,< 0.25.0",
"opensearch-py ~= 2.0.0",
"elasticsearch8[async] ~= 8.7.0",
"smart-open",
"brotli-asgi >= 1.1,< 1.3",
# Database dependencies
"alembic ~= 1.9.0",
"SQLAlchemy ~= 2.0.0",
"greenlet >= 2.0.0",
# Async SQLite
"aiosqlite >=0.19.0",
# metrics
"scikit-learn >= 0.24.2",
# Statics server
"aiofiles >= 0.6,< 22.2",
"PyYAML >= 5.4.1,< 6.1.0",
# security dependencies
"python-multipart ~= 0.0.5",
"python-jose[cryptography] >= 3.2,< 3.4",
"passlib[bcrypt] ~= 1.7.4",
# OAuth2 integration
"httpx~=0.26.0",
"oauthlib ~= 3.2.0",
"social-auth-core ~= 4.5.0",
# Info status
"psutil >= 5.8, <5.10",
# Telemetry
"segment-analytics-python == 2.2.0",
# For logging, tracebacks, printing, progressbars
"rich != 13.1.0",
# for CLI
"typer >= 0.6.0, < 0.10.0", # spaCy only supports typer<0.10.0
"packaging>=23.2",
]
[project.optional-dependencies]
postgresql = [
"psycopg2 ~= 2.9.5",
# Async PostgreSQL
"asyncpg >=0.27.0",
]
[project.urls]
homepage = "https://www.argilla.io"
documentation = "https://docs.argilla.io"
repository = "https://github.com/argilla-io/argilla"
[project.scripts]
argilla_server = "argilla_server.cli:app"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.build]
excludes = [".env.dev", ".env.test"]
[tool.pdm.version]
source = "file"
path = "src/argilla_server/_version.py"
[tool.pdm.dev-dependencies]
test = [
"pytest>=7.4.4",
"pytest-cov>=4.1.0",
"pytest-mock>=3.12.0",
# pytest-asyncio version 0.23.3 has a break change with how event loops are managed so we are setting it to use ~=0.21.1
"pytest-asyncio~=0.21.1",
"pytest-env>=1.1.3",
"factory-boy~=3.2.1",
"httpx>=0.26.0",
# Required by tests/unit/utils/test_dependency.py but we should take a look a probably removed them
"datasets > 1.17.0,!= 2.3.2",
"spacy>=3.5.0,<3.7.0",
"pytest-randomly>=3.15.0",
]
[tool.pytest.ini_options]
log_format = "%(asctime)s %(name)s %(levelname)s %(message)s"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_cli = "True"
testpaths = ["tests"]
env = ["ARGILLA_ENABLE_TELEMETRY=0"]
[tool.coverage.run]
concurrency = ["greenlet", "thread", "multiprocessing"]
[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",
]
line-length = 120
[tool.ruff.per-file-ignores]
# Ignore imported but unused;
"__init__.py" = ["F401"]
[tool.black]
line-length = 120
[tool.pdm.scripts]
_.env_file = ".env.dev"
cli = { cmd = "python -m argilla_server.cli" }
server = { cmd = "uvicorn argilla_server:app --reload" }
migrate = { cmd = "alembic upgrade head" }
test = { cmd = "pytest", env_file = ".env.test" }
build-server-image = { shell = "cp -R dist docker/server && docker build -t argilla/argilla-server:local docker/server" }
build-quickstart-image = { shell = "docker build --build-arg ARGILLA_VERSION=local -t argilla/argilla-quickstart:local docker/quickstart" }