-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathpyproject.toml
191 lines (165 loc) · 4.97 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
description = "ZABBIX-CLI - Zabbix terminal client"
name = "zabbix-cli-uio"
readme = "README.md"
requires-python = ">=3.9"
license = "GPL-3.0-or-later"
keywords = []
maintainers = [{ name = "Peder Hovdan Andresen", email = "[email protected]" }]
authors = [
# Historical authors (pre-V3)
{ name = "Rafael Martinez Guerrero", email = "[email protected]" },
{ name = "Paal Braathen", email = "[email protected]" },
{ name = "Marius Bakke", email = "[email protected]" },
{ name = "Others (see AUTHORS)" },
]
classifiers = [
"Environment :: Console",
"Development Status :: 5 - Production/Stable",
"Topic :: System :: Monitoring",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"typer>=0.13.1",
"rich>=13.3.1",
"prompt_toolkit>=3.0.47",
"httpx[socks]>=0.26.0",
"packaging>=22.0",
"pydantic>=2.7.0",
"tomli>=2.0.1",
"tomli-w>=1.0.0",
"platformdirs>=2.5.4",
"strenum>=0.4.15",
"typing-extensions>=4.8.0",
"importlib-metadata>=8.5.0; python_version < '3.10'",
]
dynamic = ["version"]
[dependency-groups]
dev = [
{ include-group = "test" },
{ include-group = "lint" },
{ include-group = "build" },
{ include-group = "docs" },
]
lint = ["ruff", "pyright"]
test = [
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"inline-snapshot>=0.13.0",
"freezegun>=1.5.1",
"pytest-httpserver>=1.1.0",
]
docs = [
"mkdocs>=1.5.3",
"mkdocs-material>=9.5.13",
"mkdocs-include-markdown-plugin>=6.0.4",
"pymdown-extensions>=9.11",
"mdx-gh-links>=0.3",
"mkdocs-simple-hooks>=0.1.5",
"mkdocs-version-annotations>=1.0.0",
"mkdocstrings[python]",
"mkdocs-macros-plugin",
"mkdocs-literate-nav",
"mkdocs-simple-hooks",
"mkdocs-gen-files",
"mkdocs-glightbox",
"sanitize-filename",
"jinja2",
"pyyaml",
]
build = ["pyinstaller"]
[project.urls]
Documentation = "https://github.com/unioslo/zabbix-cli#readme"
Issues = "https://github.com/unioslo/zabbix-cli/issues"
Source = "https://github.com/unioslo/zabbix-cli"
[project.scripts]
zabbix-cli = "zabbix_cli.main:main"
zabbix-cli-init = "zabbix_cli.scripts.init:main"
zabbix-cli-bulk-execution = "zabbix_cli.scripts.bulk_execution:main"
[tool.hatch.version]
path = "zabbix_cli/__about__.py"
[tool.hatch.build.targets.sdist]
include = ["zabbix_cli", "AUTHORS", "CHANGELOG"]
exclude = [".venv*"]
[tool.hatch.build.targets.wheel]
packages = ["zabbix_cli"]
[tool.hatch.build.targets.app]
pyapp-version = "0.12.0"
python-version = "3.11"
[tool.hatch.envs.default]
installer = "uv"
[tool.hatch.envs.default.scripts]
test = "pytest {args}"
cov = "pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=zabbix_cli --cov=tests {args}"
no-cov = "cov --no-cov {args}"
lint = "ruff check zabbix_cli {args}"
[[tool.hatch.envs.test.matrix]]
python = ["39", "310", "311"]
[tool.hatch.envs.docs]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build --clean --strict {args}"
serve = "mkdocs serve --dev-addr localhost:8001 {args}"
[tool.pytest.ini_options]
addopts = "-v"
[tool.coverage.run]
branch = true
parallel = true
omit = ["zabbix_cli/__about__.py"]
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
[tool.pyright]
pythonVersion = "3.10"
venvPath = "."
venv = ".venv"
ignore = ["zabbix_cli/commands/_dev.py"]
typeCheckingMode = "strict"
[tool.ruff]
src = ["zabbix_cli"]
extend-exclude = ["zabbix_cli/__init__.py"]
extend-include = [
"pyproject.toml",
"zabbix_cli/**/*.py",
"scripts/**/*.py",
"tests/**/*.py",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint]
extend-select = [
"E", # pydecodestyle (errors)
"W", # pydecodestyle (warnings)
"G", # flake8-logging-format
"I", # isort
"LOG", # flake8-logging
"PLE1205", # pylint (too many logging args)
"PLE1206", # pylint (too few logging args)
"TID252", # flake8-tidy-imports (prefer absolute imports)
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"FBT002", # flake8-boolean-trap (Positional bool values with defaults)
]
ignore = [
"E501", # Avoid enforcing line-length violations
"B008", # Argument default function call (incompatible with typer)
]
[tool.ruff.lint.isort]
# Force one line per import to simplify diffing and merging
force-single-line = true
# Add annotations import to every file
required-imports = ["from __future__ import annotations"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true