Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
77 lines (63 loc) · 2.17 KB
/
Copy pathpyproject.toml
File metadata and controls
77 lines (63 loc) · 2.17 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
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"
[project]
name = "opencode-hawk"
dynamic = ["version"]
description = "Coordinator that keeps long-running, multi-agent OpenCode workflows moving: auto-continue, llama-server watchdog, ntfy phone alerts and a local dashboard."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "ChakraFusion" }]
requires-python = ">=3.10"
dependencies = ["psutil>=5.9"]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Environment :: Web Environment",
"Topic :: Software Development",
]
[project.urls]
Homepage = "https://github.com/ChakraFusion/opencode-hawk"
Issues = "https://github.com/ChakraFusion/opencode-hawk/issues"
[project.scripts]
hawk = "opencode_hawk.cli:main"
[tool.setuptools]
packages = ["opencode_hawk"]
[tool.setuptools.dynamic]
# Single source of truth: opencode_hawk/__init__.py:__version__
version = { attr = "opencode_hawk.__version__" }
[tool.setuptools.package-data]
opencode_hawk = ["web/*", "config.example.json", "opencode-plugin/*"]
# ---- Dev tooling (see tests/test_selftests.py and .github/workflows/tests.yml) ----
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q"
[tool.coverage.run]
source = ["opencode_hawk"]
[tool.coverage.report]
show_missing = true
[tool.ruff]
line-length = 120
exclude = [".git", ".opencode", "build", ".ruff_cache"]
[tool.ruff.lint]
# Deliberately small: only rules the code already passes, so the gate stays
# green and catches regressions. Broaden the list as rules get cleaned up.
select = ["E9", "F63", "F7", "F82", "F811"]
[tool.ruff.lint.per-file-ignores]
# Selftests do globals().update(vars(hawk)), so names are bound dynamically.
"tests/*" = ["F821"]
[tool.mypy]
python_version = "3.10"
# "Pure" helpers only: platform/IO modules with no dependency on the
# coordinator's dynamically-bound namespace.
files = [
"opencode_hawk/probes.py",
"opencode_hawk/telemetry.py",
"opencode_hawk/hawk_linux.py",
"opencode_hawk/llama_tasks.py",
]
ignore_missing_imports = true
follow_imports = "skip"
warn_unused_ignores = true