Functions | |
| list | tracked_markdown () |
| Markdown files the current commit carries. | |
| bool | in_code_block (list lines, int index) |
| Whether a line sits inside a fenced code block. | |
| int | main () |
| Fail when narrative prose hardcodes a run-relative path. | |
Variables | |
| REPO_ROOT = Path(__file__).resolve().parents[2] | |
| str | TOPOLOGY = REPO_ROOT / "tests" / "tooling" / "artifact_topology.json" |
| dict | SKIP_DIRS = {".git", "docs_build", "obj", "bin", "stubs", "runs", "studies", "__pycache__", ".pytest_cache"} |
| dict | HISTORICAL = {"docs/CHANGELOG.md"} |
| str | RUN_OWNED = "config|logs|output|scheduler|visualization|checkpoints" |
| MANAGED | |
| PLACEHOLDER_ROOT | |
| BARE_PREFIX | |
| REPO_OWNED = re.compile(r"<repo>/[A-Za-z0-9_][A-Za-z0-9_./*<>-]*") | |
| WORKSPACE_OWNED = re.compile(r"<workspace>/[A-Za-z0-9_][A-Za-z0-9_./*<>-]*") | |
| tuple | REPO_CONFIG_SUBDIRS |
| NOT_RUN_OWNED_PREFIXES | |
| tuple | ALLOWED_CONTEXTS |
Reject unmanaged run-path literals so a layout change cannot leave prose stale.
| list audit_path_literals.tracked_markdown | ( | ) |
Markdown files the current commit carries.
Definition at line 85 of file audit_path_literals.py.
| bool audit_path_literals.in_code_block | ( | list | lines, |
| int | index | ||
| ) |
Whether a line sits inside a fenced code block.
| [in] | lines | All lines of the file. |
| [in] | index | Zero-based line index. |
Definition at line 96 of file audit_path_literals.py.
| int audit_path_literals.main | ( | ) |
Fail when narrative prose hardcodes a run-relative path.
Definition at line 107 of file audit_path_literals.py.
| audit_path_literals.REPO_ROOT = Path(__file__).resolve().parents[2] |
Definition at line 16 of file audit_path_literals.py.
| str audit_path_literals.TOPOLOGY = REPO_ROOT / "tests" / "tooling" / "artifact_topology.json" |
Definition at line 17 of file audit_path_literals.py.
| dict audit_path_literals.SKIP_DIRS = {".git", "docs_build", "obj", "bin", "stubs", "runs", "studies", "__pycache__", ".pytest_cache"} |
Definition at line 18 of file audit_path_literals.py.
| dict audit_path_literals.HISTORICAL = {"docs/CHANGELOG.md"} |
Definition at line 21 of file audit_path_literals.py.
| str audit_path_literals.RUN_OWNED = "config|logs|output|scheduler|visualization|checkpoints" |
Definition at line 31 of file audit_path_literals.py.
| audit_path_literals.MANAGED |
Definition at line 34 of file audit_path_literals.py.
| audit_path_literals.PLACEHOLDER_ROOT |
Definition at line 40 of file audit_path_literals.py.
| audit_path_literals.BARE_PREFIX |
Definition at line 51 of file audit_path_literals.py.
| audit_path_literals.REPO_OWNED = re.compile(r"<repo>/[A-Za-z0-9_][A-Za-z0-9_./*<>-]*") |
Definition at line 58 of file audit_path_literals.py.
| audit_path_literals.WORKSPACE_OWNED = re.compile(r"<workspace>/[A-Za-z0-9_][A-Za-z0-9_./*<>-]*") |
Definition at line 64 of file audit_path_literals.py.
| tuple audit_path_literals.REPO_CONFIG_SUBDIRS |
Definition at line 70 of file audit_path_literals.py.
| audit_path_literals.NOT_RUN_OWNED_PREFIXES |
Definition at line 73 of file audit_path_literals.py.
| tuple audit_path_literals.ALLOWED_CONTEXTS |
Definition at line 78 of file audit_path_literals.py.