-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (86 loc) · 2.66 KB
/
pyproject.toml
File metadata and controls
102 lines (86 loc) · 2.66 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "baft"
version = "0.3.0"
description = "ITP analytical engine — application layer on the Heddle framework"
requires-python = ">=3.11"
dependencies = [
"heddle-ai[mcp,duckdb,rag,workshop,tui,otel]",
"pyyaml>=6.0",
"pydantic>=2.0",
"structlog>=24.0",
"click>=8.0",
"python-dotenv>=1.0",
"duckdb>=0.10",
"croniter>=2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-asyncio>=0.23",
"pytest-cov>=5.0",
"ruff>=0.4",
"deepeval>=3.8.0",
]
eval = ["deepeval>=3.8.0"]
docs = [
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.24",
]
[project.scripts]
baft = "baft.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["src/baft"]
[tool.uv.sources]
heddle-ai = { path = "../heddle", editable = true }
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
markers = [
"integration: end-to-end tests requiring NATS + Redis + LLM backend",
"unit: unit tests with no external dependencies",
"e2e: end-to-end smoke tests requiring live infrastructure (NATS + workers)",
"deepeval: LLM output quality evaluation tests (requires Ollama or LLM API)",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"F", "E", "W", "I", "N", "UP", "B", "A", "C4", "SIM",
"TC", "RUF", "D", "ANN", "PT", "RET", "ARG", "PL",
"PERF", "LOG", "T20",
]
ignore = [
"D100", "D104", "D203", "D212", "D105", "D107",
"ANN401", "ARG002", "PLR0913", "PLR2004",
"B008", "PLC0415", "T20",
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["D", "ANN", "ARG", "T20", "PLR", "SIM105", "PT011", "B007", "RUF059", "RUF012", "PERF102", "RET504", "E402"]
"scripts/**/*.py" = ["T20", "ANN", "PLR", "E402"]
"pipeline/scripts/**/*.py" = ["T20", "ANN", "PLR"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
known-first-party = ["baft"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
[tool.rumdl]
exclude = [".venv", "node_modules", "_build"]
disable = [
"MD013", # line-length — docs use natural line breaks, not hard-wrapped at 80
"MD024", # duplicate-heading — repeated "Prerequisites", "Troubleshooting" across sections
"MD034", # no-bare-urls — bare URLs in config examples and quick references
"MD036", # no-emphasis-as-heading — bold text as pseudo-headings in some docs
"MD041", # first-line-heading — some reference docs don't start with H1
"MD042", # no-empty-links — status badges use empty link targets
]
[tool.rumdl.MD004]
style = "dash"
[tool.rumdl.MD029]
style = "ordered"