Skip to content

Commit b5d1e55

Browse files
committed
move replay to scripts
1 parent a32aa63 commit b5d1e55

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env python
2+
# Copyright 2025 NetBox Labs Inc
3+
"""NetBox Labs, Diode - Scripts."""

netboxlabs/diode/sdk/dryrun_replay.py renamed to netboxlabs/diode/scripts/dryrun_replay.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python
2+
# Copyright 2025 NetBox Labs Inc
13
"""CLI helper to ingest dry-run JSON messages into Diode."""
24

35
import argparse
@@ -21,13 +23,13 @@ def main() -> None:
2123
"-a",
2224
"--app-name",
2325
required=True,
24-
help="Application name used when producing the dry-run messages",
26+
help="Application name used when ingesting the dry-run messages",
2527
)
2628
parser.add_argument(
2729
"-v",
2830
"--app-version",
2931
required=True,
30-
help="Application version used when producing the dry-run messages",
32+
help="Application version used when ingesting the dry-run messages",
3133
)
3234
parser.add_argument(
3335
"-c",
@@ -69,5 +71,5 @@ def main() -> None:
6971
sys.exit(1)
7072

7173

72-
if __name__ == "__main__": # pragma: no cover - entry point
74+
if __name__ == "__main__":
7375
main()

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ test = ["coverage", "pytest", "pytest-cov==6.0.0"]
3636

3737
[tool.coverage.run]
3838
omit = [
39+
"*/netboxlabs/diode/scripts/*",
3940
"*/netboxlabs/diode/sdk/ingester.py",
4041
"*/netboxlabs/diode/sdk/diode/*",
4142
"*/netboxlabs/diode/sdk/validate/*",
@@ -46,10 +47,11 @@ omit = [
4647
"Homepage" = "https://netboxlabs.com/"
4748

4849
[project.scripts]
49-
diode-replay-dryrun = "netboxlabs.diode.sdk.dryrun_replay:main"
50+
diode-replay-dryrun = "netboxlabs.diode.scripts.dryrun_replay:main"
5051

5152
[tool.setuptools]
5253
packages = [
54+
"netboxlabs.diode.scripts",
5355
"netboxlabs.diode.sdk",
5456
"netboxlabs.diode.sdk.diode",
5557
"netboxlabs.diode.sdk.diode.v1",

0 commit comments

Comments
 (0)