Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Alina Lozovskaya
commited on
Commit
•
d279988
1
Parent(s):
9469eae
Replace Poetry with uv
Browse files- backend/pyproject.toml +49 -25
backend/pyproject.toml
CHANGED
@@ -1,30 +1,54 @@
|
|
1 |
-
[
|
2 |
name = "llm-leaderboard-backend"
|
3 |
version = "0.1.0"
|
4 |
description = "Backend for the Open LLM Leaderboard"
|
5 |
-
|
6 |
-
|
7 |
-
[
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
[
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
[build-system]
|
29 |
-
requires = ["
|
30 |
-
build-backend = "
|
|
|
|
|
|
|
|
1 |
+
[project]
|
2 |
name = "llm-leaderboard-backend"
|
3 |
version = "0.1.0"
|
4 |
description = "Backend for the Open LLM Leaderboard"
|
5 |
+
requires-python = "==3.12.1"
|
6 |
+
|
7 |
+
dependencies = [
|
8 |
+
"fastapi >=0.115.6",
|
9 |
+
"uvicorn >=0.34.0",
|
10 |
+
"numpy >=2.2.0",
|
11 |
+
"pandas >=2.2.3",
|
12 |
+
"datasets >=3.2.0",
|
13 |
+
"pyarrow >=18.1.0",
|
14 |
+
"python-multipart >=0.0.20",
|
15 |
+
"huggingface-hub >=0.27.0",
|
16 |
+
"transformers >=4.47.0",
|
17 |
+
"safetensors >=0.4.5",
|
18 |
+
"aiofiles >=24.1.0",
|
19 |
+
"fastapi-cache2 >=0.2.1",
|
20 |
+
]
|
21 |
+
|
22 |
+
[project.optional-dependencies]
|
23 |
+
dev = [
|
24 |
+
"pytest >=8.3.4",
|
25 |
+
"black >=24.10.0",
|
26 |
+
"isort >=5.13.2",
|
27 |
+
"flake8 >=7.1.1",
|
28 |
+
]
|
29 |
+
|
30 |
+
[tool.ruff]
|
31 |
+
line-length = 120
|
32 |
+
target-version = "py312"
|
33 |
+
include = ["*.py", "*.pyi", "**/pyproject.toml", "*.ipynb"]
|
34 |
+
ignore=["I","EM","FBT","TRY003","S101","D101","D102","D103","D104","D105","G004","D107","FA102"]
|
35 |
+
fixable=["ALL"]
|
36 |
+
select=["ALL"]
|
37 |
+
|
38 |
+
[tool.ruff.lint]
|
39 |
+
select = ["E", "F"]
|
40 |
+
fixable = ["ALL"]
|
41 |
+
ignore = ["E501"] # line too long (black is taking care of this)
|
42 |
+
|
43 |
+
[tool.isort]
|
44 |
+
profile = "black"
|
45 |
+
|
46 |
+
[tool.black]
|
47 |
+
line-length = 119
|
48 |
|
49 |
[build-system]
|
50 |
+
requires = ["hatchling>=1.0.0"]
|
51 |
+
build-backend = "hatchling.build"
|
52 |
+
|
53 |
+
[tool.hatch.build.targets.wheel]
|
54 |
+
packages = ["backend"]
|