-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (91 loc) · 2.57 KB
/
pyproject.toml
File metadata and controls
106 lines (91 loc) · 2.57 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
# pyproject.toml
#
# Installation:
# pipx install . # Recommended: isolated environment
# pip install . # System-wide
# pip install -e . # Development mode
#
# Verify: rots --help
[project]
name = "rots"
version = "0.5.1"
description = "Service orchestration for OneTimeSecret: Podman Quadlets and systemd service management"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
authors = [{ name = "OneTime Secret", email = "ops@onetimesecret.com" }]
keywords = [
"containers",
"onetimesecret",
"podman",
"quadlet",
"redis",
"service-management",
"systemd",
"valkey"
]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Systems Administration",
]
dependencies = [
"cyclopts>=4.5",
"ots-shared[ssh]>=0.1.0",
"podman>=5.0",
"pyyaml>=6.0"
]
[project.urls]
Homepage = "https://onetimesecret.com"
Issues = "https://github.com/onetimesecret/rots/issues"
Repository = "https://github.com/onetimesecret/rots"
[project.scripts]
rots = "rots.cli:main"
[project.optional-dependencies]
dns = ["dns-lexicon>=3.17"]
dev = ["pre-commit>=3.0", "pyright>=1.1.390", "ruff>=0.9"]
test = ["pytest>=8.0", "pytest-mock>=3.14", "pytest-cov>=6.0", "coverage>=7.10"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.coverage.run]
source = ["rots"]
[tool.coverage.report]
# Global minimum enforced by --cov-fail-under=70 in pytest invocation.
# Per-file baselines are enforced in CI via separate `coverage report --include` steps.
# Targets (raise these as test coverage improves):
# cli.py baseline 26% target 80%
# commands/db.py baseline 29% target 70%
show_missing = true
skip_empty = true
[tool.hatch.build.targets.wheel]
packages = ["src/rots"]
[tool.pyright]
pythonVersion = "3.11"
typeCheckingMode = "basic"
include = ["src"]
extraPaths = ["packages/ots-shared/src"]
[tool.pytest]
pythonpath = ["src"]
testpaths = ["tests"]
[tool.ruff]
target-version = "py311"
src = ["src"]
line-length = 100
[tool.ruff.lint]
select = ["E", "F", "I", "UP"]
ignore = [
"E741"
] # Ambiguous variable names (l, O, I) - clear in modern fonts
[tool.uv]
dev-dependencies = []
[tool.uv.workspace]
members = ["packages/ots-shared"]
[tool.uv.sources]
ots-shared = { workspace = true }