-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (116 loc) · 3.23 KB
/
Copy pathpyproject.toml
File metadata and controls
129 lines (116 loc) · 3.23 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "wayfinder"
version = "0.0.1"
description = "Tactical Edge Route Agent — National Security Hackathon 2026"
requires-python = ">=3.11,<3.12"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Hackathon Team" }]
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.30",
"pydantic>=2.7",
"structlog>=24.1",
"pyyaml>=6.0",
"jsonschema>=4.22",
"shapely>=2.0",
"geojson>=3.1",
"lxml>=5.2",
"httpx>=0.27",
"openai>=1.40",
"anthropic>=0.40",
"ollama>=0.3",
"cryptography>=43.0",
"python-multipart>=0.0.9",
"rich>=13.7",
]
[project.optional-dependencies]
dev = [
"pytest>=8.2",
"pytest-asyncio>=0.23",
"pytest-cov>=5.0",
"ruff>=0.6",
"mypy>=1.11",
"bandit>=1.7",
"pip-audit>=2.7",
"types-PyYAML",
"types-jsonschema",
]
crypto = [
# Requires `liboqs` system library installed first.
# macOS: brew install liboqs
# Ubuntu/Jetson: see infra/install_liboqs.sh
"liboqs-python==0.10.0",
]
voice = [
"faster-whisper>=1.0",
"piper-tts>=1.2",
]
[tool.setuptools.packages.find]
include = ["agent*", "routing*", "atak*", "voice*", "crypto*", "security*", "eval*", "ontology*"]
exclude = ["tests*", "scripts*", "docs*", "figma*", "hardware*", "deploy*", "models*", "mesh*", "data*", "infra*"]
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["agent", "routing", "atak", "voice", "crypto", "security", "eval", "ontology", "tests"]
# Kyle's local LLM dev sandbox + tests of the same. Has its own deps + its own
# style; not subject to repo-wide ruff config. Track in GH issue if/when we
# merge it into the main app.
extend-exclude = ["llm_dev_kmh", "tests/test_llm_dev_stream.py"]
[tool.ruff.lint]
select = [
"E", "F", "W",
"I",
"N",
"UP",
"B",
"SIM",
"RET",
"S",
"T20",
"ASYNC",
]
ignore = [
"S101",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S105", "S106"]
# Satriyo's security/crypto demo `if __name__ == "__main__":` blocks legitimately
# print to stdout. Ignoring T201 in those modules.
"security/*" = ["T201"]
"crypto/*" = ["T201"]
# eval/runner.py is a CLI tool that prints to stdout intentionally.
"eval/runner.py" = ["T201"]
# scripts/ are CLI demo tools that print to stdout intentionally.
"scripts/*" = ["T201"]
[tool.ruff.lint.isort]
known-first-party = ["agent", "routing", "atak", "voice", "crypto", "security", "eval", "ontology"]
[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true
disallow_untyped_defs = true
# Satriyo's lanes were authored at a non-strict level. Track in GH issue
# "tighten mypy on crypto/ + security/" for post-MVP.
[[tool.mypy.overrides]]
module = "crypto.*"
ignore_errors = true
[[tool.mypy.overrides]]
module = "security.*"
ignore_errors = true
warn_unused_ignores = true
files = ["agent", "routing", "crypto"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
markers = [
"slow: slow tests (excluded from default run)",
"integration: integration tests (require external services)",
]
testpaths = ["tests"]
python_files = ["test_*.py"]
[tool.bandit]
exclude_dirs = ["tests", ".venv", "scripts"]
skips = ["B101"]