forked from langfarm/langfarm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
67 lines (56 loc) · 1.39 KB
/
Copy pathpyproject.toml
File metadata and controls
67 lines (56 loc) · 1.39 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
[project]
name = "langfarm"
version = "0.1.0"
description = "Langfarm 是 LLM 应用的 Ops 平台。使用 Langfuse 及对其改进等..."
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"langfarm-app-base",
"langfarm-io",
"langfarm-tracing",
]
[dependency-groups]
dev = [
"pyright >= 1.1.392",
"poethepoet>=0.32.0",
"pytest >= 8.3.4",
"pytest-cov>=6.0.0",
"ruff >= 0.8.5",
"cookiecutter>=2.6.0",
"testcontainers>=4.9.1",
"langfarm-tests",
]
[tool.uv.workspace]
members = ["packages/*", "apps/*"]
[tool.uv.sources]
langfarm-tests = { workspace = true }
langfarm-io = { workspace = true }
langfarm-app-base = { workspace = true }
langfarm-tracing = { workspace = true }
[tool.ruff]
line-length = 120
fix = true
target-version = "py311"
extend-exclude = ["templates"]
[tool.ruff.format]
docstring-code-format = true
[tool.pyright]
include = ["src", "tests"]
[tool.pytest.ini_options]
addopts = "--cov=packages --cov=apps --cov-report=html"
minversion = "6.0"
testpaths = ["tests"]
[tool.coverage.run]
omit = [
"*/tests/**/*.py"
]
[tool.poe.tasks]
# run with eg `uv run poe fmt`
fmt = "ruff format ${PWD}"
lint = "ruff check --fix ${PWD}"
pyright = "pyright ${PWD}"
test = "pytest ${PWD}"
# run all the above
all = ["fmt", "lint", "pyright", "test"]
"ci:fmt" = "ruff format --check ${PWD}" # fail if not formatted
"ci:lint" = "ruff check ${PWD}"