-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
92 lines (77 loc) · 1.88 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
[project]
name = "lvmbeat"
version = "0.2.1a0"
description = "LVM heartbeat monitor"
readme = "README.md"
authors = [
{ name = "José Sánchez-Gallego", email = "[email protected]" }
]
requires-python = ">=3.13"
dependencies = [
"httpx>=0.28.1",
"lvmopstools[slack]>=0.5.2",
"pydantic>=2.10.4",
"python3-nmap>=1.9.1",
"sdss-clu>=2.4.3",
"sdsstools>=1.9.1",
]
[project.optional-dependencies]
lco-monitor = [
"fastapi[standard]>=0.115.6",
"fastapi-utils>=0.8.0",
"typing-inspect>=0.9.0"
]
[project.scripts]
lvmbeat = "lvmbeat.__main__:main"
[dependency-groups]
dev = [
"ipython>=8.31.0",
"ipdb>=0.12.3",
"ruff>=0.5.0",
"pytest>=5.2.2",
"pytest-asyncio>=0.10.0",
"pytest-cov>=2.8.1",
"pytest-mock>=1.13.0",
"pytest-sugar>=0.9.2",
"coverage[toml]>=5.0"
]
[tool.uv]
package = true
default-groups = ["dev"]
[tool.ruff]
line-length = 88
target-version = 'py312'
[tool.ruff.lint]
select = ["E", "F", "I"]
unfixable = ["F841"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F403", "E402", "F401"]
[tool.ruff.lint.isort]
known-first-party = ["lvmbeat"]
lines-after-imports = 2
section-order = ["future", "standard-library", "typing", "third-party", "sdss", "first-party", "local-folder"]
[tool.ruff.lint.isort.sections]
typing = ["typing"]
sdss = ["sdsstools", "clu"]
[tool.pytest.ini_options]
addopts = "--cov lvmbeat --cov-report xml --cov-report html --cov-report term -W ignore"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
[tool.coverage.run]
branch = true
include = ["src/lvmbeat/*"]
omit = [
"*/__init__.py",
]
[tool.coverage.report]
exclude_lines = [
"if TYPE_CHECKING:",
"# pragma: no cover"
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist]
only-include = ["src/lvmbeat"]
[tool.hatch.build.targets.wheel]
packages = ["src/lvmbeat"]