-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathpyproject.toml
More file actions
64 lines (58 loc) · 1.59 KB
/
pyproject.toml
File metadata and controls
64 lines (58 loc) · 1.59 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
[tool.black]
line-length = 88
target-version = ['py312']
exclude = '''
(
/(
| \.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| node_modules
)/
)
'''
[tool.isort]
profile = "black"
line_length = 88
skip_gitignore = true
skip = [".git", "__pycache__", "venv", ".venv", ".mypy_cache", ".tox", ".eggs", "_build", "buck-out", "node_modules"]
[tool.mypy]
python_version = "3.12"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
exclude = [
"^venv/",
"^.venv/",
"^node_modules/",
]
[tool.bandit]
exclude_dirs = [".git", "__pycache__", "venv", ".venv", ".mypy_cache", ".tox", ".eggs", "_build", "buck-out", "node_modules"]
skips = ["B101"] # Skip assert warnings (common in tests)
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (real Docker operations, may take > 5 seconds)",
"integration: marks tests as integration tests (require external services like Lemonade server)",
]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--tb=short --strict-markers"
asyncio_mode = "auto"
# UV configuration for PyTorch CPU-only builds
# GAIA is optimized for AMD hardware and doesn't require NVIDIA/CUDA dependencies
# This ensures torch, torchvision, and torchaudio are installed from CPU-only index
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[tool.uv.sources]
torch = [{ index = "pytorch-cpu" }]
torchvision = [{ index = "pytorch-cpu" }]
torchaudio = [{ index = "pytorch-cpu" }]