-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
53 lines (45 loc) · 1.38 KB
/
Copy pathpyproject.toml
File metadata and controls
53 lines (45 loc) · 1.38 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
[project]
name = "tooluser"
version = "0.2.4"
description = "Enable tool-use ability for any LLM model (DeepSeek V3/R1, etc.)"
authors = [
{name = "yanli", email = "mail@yanli.one"},
]
dependencies = ["openai>=1.75.0", "jinja2>=3.1.6", "json-repair>=0.41.1"]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm]
distribution = true
[tool.pdm.scripts]
fix = { shell = "ruff check --fix && ruff format" }
check = { shell = 'ruff check && ruff format --check' }
test = { shell = "pytest tests/" }
[tool.ruff]
target-version = "py310"
exclude = [".venv"]
[tool.ruff.lint]
select = ["E", "F", "G", "B", "I", "SIM", "TID", "PL", "RUF"]
ignore = [
"RUF001", # ',' vs. ','
"RUF003", # Ambiguous unicode character comment
"E501", # Line too long
"E402", # Module level import not at top of file
"PLR0911", # Too many return statements
"PLR0912", # Too many branches
"PLR0913", # Too many arguments in function definition
"PLR0915", # Too many statements
"SIM105", # Use `contextlib.suppress(Exception)` instead of `try`-`except`-`pass`
"SIM102", # Use a single `if` statement instead of nested `if` statements
]
[dependency-groups]
dev = [
"ruff>=0.11.6",
"logfire>=3.14.0",
"python-dotenv>=1.1.0",
"pytest>=8.3.5",
"trio>=0.30.0",
]