locrin 0.5.0__py3-none-win_amd64.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.
- locrin/__init__.py +4 -0
- locrin/__main__.py +23 -0
- locrin/bin/locrin.exe +0 -0
- locrin-0.5.0.dist-info/METADATA +25 -0
- locrin-0.5.0.dist-info/RECORD +7 -0
- locrin-0.5.0.dist-info/WHEEL +4 -0
- locrin-0.5.0.dist-info/entry_points.txt +2 -0
locrin/__init__.py
ADDED
locrin/__main__.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import subprocess
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def binary():
|
|
7
|
+
name = "locrin.exe" if sys.platform == "win32" else "locrin"
|
|
8
|
+
return os.path.join(os.path.dirname(os.path.abspath(__file__)), "bin", name)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def main():
|
|
12
|
+
path = binary()
|
|
13
|
+
if not os.path.exists(path):
|
|
14
|
+
sys.stderr.write("locrin: the binary is missing from this installation; reinstall with pip, or see https://github.com/BilalEjaz/locrin#install\n")
|
|
15
|
+
return 2
|
|
16
|
+
args = [path] + sys.argv[1:]
|
|
17
|
+
if sys.platform == "win32":
|
|
18
|
+
return subprocess.call(args)
|
|
19
|
+
os.execv(path, args)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
if __name__ == "__main__":
|
|
23
|
+
sys.exit(main())
|
locrin/bin/locrin.exe
ADDED
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: locrin
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Locrin: the deterministic quality gate for code written by people and agents.
|
|
5
|
+
Home-page: https://locrin.com
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.9
|
|
8
|
+
Project-URL: Source, https://github.com/BilalEjaz/locrin
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# locrin
|
|
12
|
+
|
|
13
|
+
Locrin is a deterministic quality gate for code written by people and agents. It scans a repository against a fixed rule set and exits 1 when a change would ship a blocking problem, 0 when it passes, and 2 when the engine itself fails.
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
pip install locrin
|
|
17
|
+
pipx install locrin
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Supported platforms: Linux x64, macOS x64, macOS arm64, and Windows x64.
|
|
21
|
+
Each platform has its own wheel that carries the prebuilt binary, so pip downloads only the one binary your machine needs.
|
|
22
|
+
|
|
23
|
+
Everything else, including the rules, the configuration file, and the CI setup, is in the repository README:
|
|
24
|
+
|
|
25
|
+
https://github.com/BilalEjaz/locrin
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
locrin/__init__.py,sha256=JA8N9H8oRD3d_JkHkBNOBTaZnJvuQKmnclGhGL3HDdE,166
|
|
2
|
+
locrin/__main__.py,sha256=yWr-A1qttT4ZvDiyZ4CceDbj8riyoRwetASlQusToVk,617
|
|
3
|
+
locrin/bin/locrin.exe,sha256=nxSxH5O857MNhvN9ODd4dxf7nKocojtCxK5minMaZuk,12857856
|
|
4
|
+
locrin-0.5.0.dist-info/METADATA,sha256=rVCB20mMf1F8gNghMsgkLdTsSMRDZHzyHwBA5bzugKg,941
|
|
5
|
+
locrin-0.5.0.dist-info/WHEEL,sha256=6XOmm3QzAfoUuMLVeaeIA052_-Cw9EHwmHjub0OkD2o,90
|
|
6
|
+
locrin-0.5.0.dist-info/entry_points.txt,sha256=Xiypebk-DB3IFtlffKjNLovolNbRkocjZD_EpWetuKc,48
|
|
7
|
+
locrin-0.5.0.dist-info/RECORD,,
|