forked from rhel-lightspeed/linux-mcp-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
194 lines (171 loc) · 4.54 KB
/
pyproject.toml
File metadata and controls
194 lines (171 loc) · 4.54 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "linux-mcp-server"
description = "MCP server for read-only Linux system administration, diagnostics, and troubleshooting"
authors = [
{ name = "RHEL Lightspeed" }
]
readme = "README.md"
requires-python = ">=3.10"
# Be careful about specifying an upper bound (with < or =~) because
# with our renovate strategy of in-range-only, we won't be notified
# about updates to incompatible versions, even if the old version is
# no longer getting security fixes.
dependencies = [
"asyncssh[bcrypt] >= 2.22.0",
"fastmcp >=2.14.4, <3",
"pydantic-settings >= 2.12.0",
"pydantic >= 2.12.5",
]
dynamic = ["version"]
license-files = ["LICENSE", "licenses/GPL-3.0.txt"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3 :: Only",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
]
[project.optional-dependencies]
gssapi = ["gssapi >=1.11.1"]
[project.urls]
"Source code" = "https://github.com/rhel-lightspeed/linux-mcp-server"
"Bug Tracker" = "https://github.com/rhel-lightspeed/linux-mcp-server/issues"
"Documentation" = "https://rhel-lightspeed.github.io/linux-mcp-server/"
[project.scripts]
linux-mcp-server = "linux_mcp_server.__main__:cli"
[dependency-groups]
dev = [
"ipdb",
"ipython",
"shiv",
{include-group = "lint"},
{include-group = "test"},
]
lint = [
"pyright",
"ruff",
]
test = [
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"pytest-mock",
"pytest-randomly",
"pytest>=9.0.2",
]
docs = [
"mkdocs>=1.6.1",
"mkdocs-material>=9.7.1",
"mkdocstrings[python]>=1.0.2",
]
[tool.hatch.build.targets.wheel]
packages = ["src/linux_mcp_server"]
[tool.hatch.version]
source = "vcs"
[tool.pytest.ini_options]
addopts = [
"-r", "a",
"--verbose",
"--strict-markers",
"--cov", "src",
"--cov", "tests",
"--cov-report", "html",
"--cov-report", "term-missing:skip-covered",
"--durations-min", "1",
"--durations", "10",
"--color", "yes",
"--showlocals",
"--pdbcls", "IPython.terminal.debugger:TerminalPdb",
]
asyncio_mode = "auto"
pythonpath = "src"
testpaths = ["tests"]
[tool.coverage.run]
branch = true
data_file = "coverage/.data"
source = [
"src",
"tests",
"src/linux_mcp_server/_vendor/__init__.py",
]
omit = [
"src/linux_mcp_server/_vendor/*/*",
".venv/*" # VS Code is including these files in reports for an unknown reason
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
[tool.coverage.html]
directory = "coverage/htmlcov"
[tool.coverage.json]
output = "coverage/coverage.json"
[tool.coverage.xml]
output = "coverage/coverage.xml"
[tool.gha-update]
tag-only = [
"actions/checkout",
"actions/deploy-pages",
"actions/download-artifact",
"actions/setup-python",
"actions/upload-artifact",
"actions/upload-pages-artifact",
"astral-sh/setup-uv",
"codecov/codecov-action",
"pypa/gh-action-pypi-publish",
"softprops/action-gh-release",
]
[tool.pyright]
include = [
"src",
"tests",
]
ignore = [
"src/linux_mcp_server/_vendor/*/*"
]
pythonVersion = "3.10"
[tool.ruff]
line-length = 120
indent-width = 4
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
# Enable ruff rules to act like flake8
select = [
"E", # pycodestyle (formerly part of flake8)
"F", # pyflakes (formerly part of flake8)
"I", # import order (like isort)
# "B", # flake8-bugbear
"C90", # flake8-comprehensions
"RUF100", # unused-noqa
"T20", # flake8-print
]
mccabe.max-complexity = 12
# Exclude specific rules if needed
ignore = [
"E501", # Ignore line length (similar to flake8's max-line-length)
]
[tool.ruff.lint.per-file-ignores]
"scripts/*" = ["T201"]
[tool.ruff.lint.isort]
case-sensitive = false
force-single-line = true
lines-after-imports = 2
lines-between-types = 1
order-by-type = false