-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
156 lines (138 loc) · 3.4 KB
/
pyproject.toml
File metadata and controls
156 lines (138 loc) · 3.4 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[build-system]
requires = ["setuptools>=68.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "query-automation"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"accelerate>=1.11.0",
"aiohttp>=3.13.2",
"db-sqlite3>=0.0.1",
"faiss-cpu>=1.12.0",
"fastapi>=0.115.0",
"uvicorn[standard]>=0.32.0",
"httpx>=0.28.1",
"langchain>=1.0.3",
"langchain-community>=0.4.1",
"langchain-core>=1.0.3",
"langchain-huggingface>=1.0.1",
"langchain-ollama>=1.0.0",
"langchain-text-splitters>=1.0.0",
"langgraph>=1.0.2",
"langgraph-checkpoint>=3.0.1",
"mcp>=1.20.0",
"pandas>=2.3.3",
"pytest>=8.4.2",
"requests>=2.32.5",
"sentence-transformers>=5.1.2",
"sqlalchemy>=2.0.44",
"sqlparse>=0.5.3",
"torch>=2.9.0",
"torchvision>=0.24.0",
"transformers>=4.57.1",
]
[dependency-groups]
dev = [
"pre-commit>=4.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.14.3",
]
[tool.setuptools.packages.find]
where = ["src"]
include = ["agent_pipeline*"]
# Ruff configuration for query automation project
[tool.ruff]
# Exclude directories and files
exclude = [
".venv",
"__pycache__",
".pytest_cache",
".git",
"*.ipynb", # Exclude Jupyter notebooks
"build",
"dist",
"*.egg-info",
]
# Python version compatibility
target-version = "py313"
# Line length
line-length = 100
[tool.ruff.lint]
# Enable specific rule categories
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"N", # pep8-naming
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"PIE", # flake8-pie
"SIM", # flake8-simplify
]
# Disable specific rules that might be too strict
ignore = [
"E501", # Line too long (handled by formatter)
"B008", # Do not perform function calls in argument defaults
"B904", # raise ... from err
"N805", # First argument should be named 'self'
"UP007", # Use X | Y for type annotations (not compatible with older Python)
]
# Allow fixes for specific rules
fixable = ["ALL"]
unfixable = []
[tool.ruff.lint.per-file-ignores]
# Test files can have specific exceptions
"tests/*" = [
"S101", # Use of assert
"PLR2004", # Magic value used in comparison
]
# Scripts can be less strict
"scripts/*" = [
"T201", # print statements allowed in scripts
"PLR2004", # Magic values allowed in demo scripts
]
[tool.ruff.lint.isort]
# Configure import sorting
known-first-party = ["agent_pipeline"]
force-sort-within-sections = true
[tool.ruff.format]
# Use double quotes for strings
quote-style = "double"
# Indent with spaces
indent-style = "space"
# Respect existing line endings
line-ending = "auto"
# Coverage configuration
[tool.coverage.run]
source = ["src"]
omit = [
"*/tests/*",
"*/test_*",
"*/__pycache__/*",
"*/venv/*",
"*/.venv/*",
"*/scripts/*", # Exclude demo scripts from coverage
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
ignore_errors = true
show_missing = true
precision = 2
[tool.coverage.html]
directory = "htmlcov"