refactor: move scripts/ to bin/
CI & Release / Verify documentation (push) Skipped
CI & Release / Verify simulator (push) Skipped
CI & Release / Trivy scan (push) Skipped
CI & Release / Semantic Release (push) Skipped
CI & Release / Verify documentation (pull_request) Successful in 5s
CI & Release / Verify simulator (pull_request) Failing after 10s
CI & Release / Trivy scan (pull_request) Skipped
CI & Release / Semantic Release (pull_request) Skipped

Relocate check_docs, check_adrs, and docs_rules; update CI, tests, and docs.
This commit is contained in:
2026-07-10 10:59:22 +01:00
parent 10a18f1321
commit b4de3ed076
15 changed files with 23 additions and 20 deletions
+1
View File
@@ -0,0 +1 @@
+2 -2
View File
@@ -1,4 +1,4 @@
"""Tests for scripts/check_adrs.py — ADR immutability gate."""
"""Tests for bin/check_adrs.py — ADR immutability gate."""
from __future__ import annotations
@@ -8,7 +8,7 @@ from pathlib import Path
import pytest
SCRIPTS = Path(__file__).resolve().parents[2] / "scripts"
SCRIPTS = Path(__file__).resolve().parents[2] / "bin"
sys.path.insert(0, str(SCRIPTS))
from check_adrs import find_modified_adrs, run_check # noqa: E402
+3 -3
View File
@@ -1,4 +1,4 @@
"""Tests for scripts/check_docs.py — documentation CI rules."""
"""Tests for bin/check_docs.py — documentation CI rules."""
from __future__ import annotations
@@ -7,7 +7,7 @@ from pathlib import Path
import pytest
SCRIPTS = Path(__file__).resolve().parents[2] / "scripts"
SCRIPTS = Path(__file__).resolve().parents[2] / "bin"
sys.path.insert(0, str(SCRIPTS))
from check_docs import ( # noqa: E402
@@ -57,7 +57,7 @@ def test_broken_link_detected(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -
docs.mkdir()
(docs / "00-glossary.md").write_text("# Glossary\n\n## Data & storage\n")
(docs / "bad.md").write_text("See [missing](missing.md).\n")
rules = tmp_path / "scripts"
rules = tmp_path / "bin"
rules.mkdir()
(rules / "docs_rules.yaml").write_text(
"markdown_paths:\n - docs/**/*.md\n"