-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (103 loc) · 2.61 KB
/
Copy pathpyproject.toml
File metadata and controls
117 lines (103 loc) · 2.61 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
# -------------------------------
# build-system
# -------------------------------
[build-system]
requires = [
"setuptools>=77.0",
"wheel"
]
build-backend = "setuptools.build_meta"
# -------------------------------
# project (PEP 621 metadata)
# -------------------------------
[project]
name = "uni-agent"
dynamic = ["version"]
description = "Uni-Agent: Train Long-Horizon Agents at Scale"
license = "Apache-2.0"
license-files = ["LICENSE"]
readme = {file = "README.md", content-type = "text/markdown"}
requires-python = ">=3.10,<3.13"
[project.urls]
Documentation = "https://uni-agent.readthedocs.io/"
Repository = "https://github.com/verl-project/uni-agent"
Issues = "https://github.com/verl-project/uni-agent/issues"
# -------------------------------
# tool.ruff - Linting configuration
# -------------------------------
[tool.ruff]
line-length = 120
exclude = ["verl"]
[tool.ruff.lint]
isort = {known-first-party = ["verl"]}
# c.f. https://github.com/vllm-project/vllm/blob/ce8d6b75fc0586045df75ee1568a5b5f9957251b/pyproject.toml
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# isort
"I",
"G",
]
ignore = [
# star imports
"F405", "F403",
# lambda expression assignment
"E731",
# Loop control variable not used within loop body
"B007",
# f-string format
"UP032",
# `.log()` statement uses f-string
"G004",
# X | None for type annotations
"UP045",
# deprecated import
"UP035",
]
# -------------------------------
# tool.mypy - typechecking config
# -------------------------------
[tool.mypy]
pretty = true
ignore_missing_imports = true
explicit_package_bases = true
follow_imports = "skip"
exclude = '(^|/)(verl)(/|$)'
# Blanket silence
ignore_errors = true
[[tool.mypy.overrides]]
module = [
"verl.trainer.config.algorithm",
"verl.trainer.ppo.core_algos",
"verl.trainer.ppo.reward",
"verl.workers.reward_manager",
"verl.workers.reward_manager.*",
]
ignore_errors = false
# -------------------------------
# tool.setuptools - Additional config
# -------------------------------
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = {file = "uni_agent/version/version"}
[tool.setuptools.package-dir]
"" = "."
[tool.setuptools.packages.find]
include = ["uni_agent*"]
[tool.setuptools.package-data]
uni_agent = ["version/*"]
[tool.pytest.ini_options]
markers = [
"cpu: run on cpu backend",
"gpu: run on gpu backend",
"npu: run on npu backend",
"level0: mark level0 case, always run in CI",
"level1: mark level1 case, full test, not included in CI"
]