-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
65 lines (58 loc) · 1.8 KB
/
Copy pathpyproject.toml
File metadata and controls
65 lines (58 loc) · 1.8 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
[project]
name = "drivermap"
version = "0.1.0"
requires-python = ">=3.11"
description = "Behavioral mechanisms knowledge base — agent substrate for predicting and verbalizing human behavior"
license = {text = "MIT"}
dependencies = [
"fastmcp>=3.2.0",
"matplotlib>=3.7",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.4",
"bandit>=1.7",
"pip-audit>=2.7",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-v --cov --cov-report=term-missing"
[tool.coverage.run]
omit = ["tests/*", ".venv/*", "benchmark.py", "fetch.py", "extract.py",
"discover.py", "visualize.py", "patch_plain_language.py", "seeds.py",
"demo.py", "evolution.py"]
[tool.coverage.report]
exclude_lines = [
"if __name__ == .__main__.:",
"pragma: no cover",
]
[tool.ruff]
line-length = 100
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
]
ignore = [
"E501", # line too long (handled by formatter)
"B006", # mutable default args in function signatures (used deliberately)
"SIM108", # ternary operator preference
"SIM105", # use contextlib.suppress — try/except is clearer here
"SIM118", # key in dict vs dict.keys() — no meaningful difference
"B905", # zip() without strict= — parallel arrays are intentional
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["F401"] # unused imports in test files OK
# sys.path.insert must precede these imports
"benchmark.py" = ["E402", "E701", "E731", "B007", "B905", "SIM113"]
"patch_plain_language.py" = ["E402"]
# compact math/visualization notation is intentional
"visualize.py" = ["E701", "E702", "E731"]