-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
114 lines (96 loc) · 2.71 KB
/
pyproject.toml
File metadata and controls
114 lines (96 loc) · 2.71 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
[project]
name = "compass"
version = "0.1.0"
description = "Autonomous agent architecture for complex 3D environments"
requires-python = ">= 3.14"
dependencies = [] # stdlib only -- zero runtime deps by design
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
# ── Dev dependencies (install: uv sync) ──────────────────────────────
[dependency-groups]
dev = [
"ruff>=0.15",
"mypy>=1.19",
"vulture>=2.14",
"pytest>=8.0",
"pytest-cov>=6.0",
"hypothesis>=6.100",
"pre-commit>=4.0",
"pytest-benchmark>=5.0",
"pytest-xdist>=3.5",
]
# ── Tool configuration ───────────────────────────────────────────────
[tool.uv]
default-groups = ["dev"]
python-preference = "system"
[tool.pyright]
pythonVersion = "3.14"
typeCheckingMode = "standard"
venvPath = "."
include = ["src"]
exclude = ["scripts", "data"]
[tool.ruff]
line-length = 110
target-version = "py314"
[tool.ruff.lint]
# F = pyflakes (unused imports, undefined names, redefined unused)
# E = pycodestyle errors
# W = pycodestyle warnings
# I = isort (import sorting)
# UP = pyupgrade (modern Python syntax)
# B = flake8-bugbear (common bugs)
select = ["F", "E", "W", "I", "UP", "B", "C90"]
# Ignore rules that conflict with the codebase style
ignore = [
"E501", # line too long (handled by formatter, not linter)
"E741", # ambiguous variable name (l, O, I) - used in math code
"B006", # mutable default argument - too many false positives with dataclasses
"B007", # unused loop variable - common in spawn iteration
"UP007", # Use X | Y for union - already using this but not everywhere
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.isort]
known-first-party = [
"brain",
"compass",
"core",
"eq",
"motor",
"nav",
"perception",
"routines",
"runtime",
"simulator",
"tests",
"util",
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.mypy]
python_version = "3.14"
mypy_path = ["src"]
explicit_package_bases = true
warn_return_any = true
warn_unused_configs = true
check_untyped_defs = true
disallow_untyped_defs = true
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"live: marks tests requiring a live EQ client process",
"assets: marks tests requiring EQ game asset files on disk",
]
[tool.coverage.run]
source = ["src"]
[tool.coverage.report]
fail_under = 70
show_missing = true
skip_empty = true