Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (125 loc) · 3.22 KB
/
Copy pathpyproject.toml
File metadata and controls
139 lines (125 loc) · 3.22 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
[project]
name = "rc0-cli"
version = "2.3.1"
description = "Command line for RcodeZero DNS."
readme = "README.md"
requires-python = ">=3.14"
license = { text = "MIT" }
authors = [{ name = "Zoltán Fekete" }]
keywords = ["dns", "rcodezero", "cli", "anycast", "dnssec"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: Name Service (DNS)",
"Topic :: System :: Systems Administration",
"Topic :: Utilities",
]
dependencies = [
"typer>=0.15",
"httpx>=0.28",
"pydantic>=2.9",
"pydantic-settings>=2.6",
"rich>=13.9",
"keyring>=25.0",
"pyyaml>=6.0.2",
"tomli-w>=1.0",
"dnspython>=2.7",
]
[project.urls]
Homepage = "https://github.com/zoltanf/rc0-cli"
Issues = "https://github.com/zoltanf/rc0-cli/issues"
Source = "https://github.com/zoltanf/rc0-cli"
Changelog = "https://github.com/zoltanf/rc0-cli/blob/main/CHANGELOG.md"
[project.scripts]
rc0 = "rc0.app:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/rc0"]
[tool.hatch.build.targets.wheel.force-include]
"src/rc0/topics" = "rc0/topics"
"src/rc0/skill" = "rc0/skill"
[dependency-groups]
pyinstaller = ["pyinstaller>=6.0"]
dev = [
"ruff>=0.7",
"mypy>=1.13",
"pytest>=8.3",
"pytest-cov>=6.0",
"respx>=0.22",
"pytest-snapshot>=0.9",
"types-pyyaml>=6.0",
]
[tool.ruff]
target-version = "py314"
line-length = 100
src = ["src"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"SIM", # flake8-simplify
"RUF", # ruff-specific
"S", # flake8-bandit (security)
"C4", # flake8-comprehensions
"PIE", # flake8-pie
"PTH", # flake8-use-pathlib
"TCH", # flake8-type-checking
]
ignore = [
"S101", # allow `assert` in tests
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["S101", "S105", "S106", "PTH"]
[tool.mypy]
python_version = "3.14"
strict = true
warn_unreachable = true
warn_redundant_casts = true
warn_unused_ignores = true
disallow_any_generics = true
pretty = true
files = ["src/rc0"]
[[tool.mypy.overrides]]
module = ["keyring.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "8.0"
addopts = [
"-ra",
"--strict-config",
"--strict-markers",
"--cov=rc0",
"--cov-branch",
"--cov-report=term-missing",
]
testpaths = ["tests"]
pythonpath = ["src"]
markers = [
"e2e: tests that hit the real RcodeZero API (gated by RC0_E2E=1)",
]
[tool.coverage.run]
source = ["src/rc0"]
branch = true
[tool.coverage.report]
# Floor — prevents regressions. Mission-plan §15 target for v1.0.0 is
# 90% line / 85% branch; tighten this gate as each phase lands real code.
fail_under = 88
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]