-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (143 loc) · 4.29 KB
/
pyproject.toml
File metadata and controls
159 lines (143 loc) · 4.29 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["hatchling>=1.25.0"]
build-backend = "hatchling.build"
[project]
name = "linuxagent"
version = "4.1.0"
description = "HITL-first Linux operations control plane with policy checks, audit trails, runbooks, and SSH guards."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "LinuxAgent contributors" }]
keywords = ["linux", "ops", "llm", "agent", "langgraph", "cli"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: System :: Systems Administration",
"License :: OSI Approved :: MIT License",
]
dependencies = [
"pydantic>=2.7,<3.0",
"pyyaml>=6.0,<7.0",
"prompt_toolkit>=3.0,<4.0",
"rich>=13.0,<15.0",
"psutil>=6.0,<7.0",
"paramiko>=3.4,<4.0",
"openai>=2.26,<3.0",
"langchain-core>=1.3,<2.0",
"langchain-openai>=1.1,<1.3",
"langgraph>=1.1,<1.2",
"tenacity>=8.0,<10.0",
]
[project.optional-dependencies]
anthropic = ["langchain-anthropic>=1.3,<1.5"]
dev = [
"build>=1.2,<2.0",
"hatchling>=1.25,<2.0",
"pytest>=8.0,<9.0",
"pytest-cov>=5.0,<7.0",
"pytest-asyncio>=0.23,<1.0",
"hypothesis>=6.100,<7.0",
"mypy>=1.10,<2.0",
"ruff>=0.5,<1.0",
"bandit>=1.7,<2.0",
"pre-commit>=3.7,<5.0",
"pip-tools>=7.4,<8.0",
"types-PyYAML",
"types-requests",
]
pyinstaller = ["pyinstaller>=6.0,<7.0"]
[project.scripts]
linuxagent = "linuxagent.cli:main"
[project.urls]
Repository = "https://github.com/Eilen6316/LinuxAgent"
Documentation = "https://github.com/Eilen6316/LinuxAgent#readme"
Roadmap = "https://github.com/Eilen6316/LinuxAgent/blob/master/ROADMAP.md"
Changelog = "https://github.com/Eilen6316/LinuxAgent/blob/master/CHANGELOG.md"
Issues = "https://github.com/Eilen6316/LinuxAgent/issues"
Security = "https://github.com/Eilen6316/LinuxAgent/security/policy"
[tool.hatch.build.targets.wheel]
packages = ["src/linuxagent"]
[tool.hatch.build.targets.wheel.force-include]
"configs/default.yaml" = "linuxagent/_data/default.yaml"
"configs/policy.default.yaml" = "linuxagent/_data/policy.default.yaml"
"prompts" = "linuxagent/_data/prompts"
"runbooks" = "linuxagent/_data/runbooks"
[tool.hatch.build.targets.sdist]
include = [
"src/linuxagent",
"configs",
"prompts",
"runbooks",
"docs",
"pyproject.toml",
"README.md",
"CHANGELOG.md",
"SECURITY.md",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"ROADMAP.md",
"constraints.txt",
]
exclude = [".work/", ".claude/"]
# ---- ruff ---------------------------------------------------------------
[tool.ruff]
line-length = 100
target-version = "py311"
extend-exclude = [".work"]
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"B", # bugbear
"N", # pep8-naming
"UP", # pyupgrade
"S", # bandit-lite
"ASYNC",
"C4",
"SIM",
"PT", # pytest style
]
ignore = [
"E501", # handled by formatter
"S101", # asserts in tests
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "S603", "S607", "PLR2004"]
# ---- mypy ---------------------------------------------------------------
[tool.mypy]
python_version = "3.11"
strict = true
warn_unused_configs = true
exclude = ["build/", "dist/"]
[[tool.mypy.overrides]]
module = ["langchain_anthropic.*", "paramiko.*", "psutil.*", "yaml"]
ignore_missing_imports = true
# ---- pytest -------------------------------------------------------------
[tool.pytest.ini_options]
addopts = "-ra -q --strict-markers"
testpaths = ["tests/unit"]
asyncio_mode = "auto"
markers = [
"integration: optional integration test (run with make integration or --integration)",
"red_team: adversarial policy regression tests",
]
# ---- coverage -----------------------------------------------------------
[tool.coverage.run]
source = ["linuxagent"]
branch = true
omit = []
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"@abstractmethod",
]