runboth 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
runboth/__init__.py ADDED
@@ -0,0 +1,30 @@
1
+ """runboth: behaviour adjudication for AI-written code.
2
+
3
+ This directory is a flat set of modules that import one another by bare name. When it is
4
+ installed as the `runboth` package, this file puts the package directory itself on sys.path so
5
+ those imports resolve to the installed copies. It is the same thing `cli.py` already does when
6
+ run from a checkout, made unconditional so `from runboth.cli import main` works too.
7
+ """
8
+ import sys as _sys
9
+ from pathlib import Path as _Path
10
+
11
+ _here = str(_Path(__file__).resolve().parent)
12
+ if _here not in _sys.path:
13
+ _sys.path.insert(0, _here)
14
+
15
+ __all__ = ["main", "engine_dir"]
16
+
17
+
18
+ def engine_dir():
19
+ """Where the engine modules live, wherever this package was installed or checked out.
20
+
21
+ The git hook uses this to locate `precommit.py` at RUN time instead of having an absolute
22
+ path baked into it at INSTALL time. Moving the project used to silently break every hook
23
+ already installed, which is exactly the class of failure this tool exists to catch.
24
+ """
25
+ return _here
26
+
27
+
28
+ def main():
29
+ from cli import main as _main
30
+ return _main()