klint 0.1.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.
- klint-0.1.0.data/purelib/klint/__init__.py +3 -0
- klint-0.1.0.data/purelib/klint/__main__.py +25 -0
- klint-0.1.0.data/purelib/klint/_bin/klint-rs.exe +0 -0
- klint-0.1.0.dist-info/METADATA +25 -0
- klint-0.1.0.dist-info/RECORD +8 -0
- klint-0.1.0.dist-info/WHEEL +5 -0
- klint-0.1.0.dist-info/entry_points.txt +2 -0
- klint-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import os
|
|
4
|
+
import subprocess
|
|
5
|
+
import sys
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def main() -> int:
|
|
10
|
+
binary = _binary_path()
|
|
11
|
+
if not binary.exists():
|
|
12
|
+
sys.stderr.write(f"klint: bundled native binary is missing: {binary}\n")
|
|
13
|
+
return 1
|
|
14
|
+
|
|
15
|
+
result = subprocess.run([str(binary), *sys.argv[1:]], check=False)
|
|
16
|
+
return result.returncode
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def _binary_path() -> Path:
|
|
20
|
+
name = "klint-rs.exe" if os.name == "nt" else "klint-rs"
|
|
21
|
+
return Path(__file__).resolve().parent / "_bin" / name
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
if __name__ == "__main__":
|
|
25
|
+
raise SystemExit(main())
|
|
Binary file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: klint
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Architecture-as-Code linter for TypeScript and Python projects.
|
|
5
|
+
Author: Konvert7
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://klint.dev
|
|
8
|
+
Project-URL: Repository, https://github.com/konvert7/klint
|
|
9
|
+
Project-URL: Issues, https://github.com/konvert7/klint/issues
|
|
10
|
+
Keywords: architecture,linter,typescript,python,rust
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Rust
|
|
16
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
17
|
+
Requires-Python: >=3.9
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
|
|
20
|
+
# klint
|
|
21
|
+
|
|
22
|
+
Python package wrapper for the native klint Rust engine.
|
|
23
|
+
|
|
24
|
+
This package is not the TypeScript/Bun implementation. It bundles the Rust
|
|
25
|
+
binary and exposes the `klint` console command for Python projects.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
klint-0.1.0.data/purelib/klint/__init__.py,sha256=4t_crzhrLum--oyowUMxtjBTzUtWp7oRTF22ewEvJG4,49
|
|
2
|
+
klint-0.1.0.data/purelib/klint/__main__.py,sha256=kCPlwHfYZaNSCAow1Piysm-v3ekI0uMIoArZ_A6yB40,584
|
|
3
|
+
klint-0.1.0.data/purelib/klint/_bin/klint-rs.exe,sha256=mH_nbuI9kb_pPs8HgyE84gVl-jrhz0EQnJ9Cn4eT_yI,4265984
|
|
4
|
+
klint-0.1.0.dist-info/METADATA,sha256=_fZHzBZ-051KwVqV4QJunvLV7BPlUyp4lNCYL7vSO2E,952
|
|
5
|
+
klint-0.1.0.dist-info/WHEEL,sha256=GjDPPQwEcripVP6P2r3RxLa-h5Lb9ifGB7FYYtbLDT0,98
|
|
6
|
+
klint-0.1.0.dist-info/entry_points.txt,sha256=Lh126UZnvJH7JAYq7uq8F-KoOrCPDQgNbcyA8xNGy_E,46
|
|
7
|
+
klint-0.1.0.dist-info/top_level.txt,sha256=GOgUWeYChLYrH8vXvEhPTMta7vZjhLcOG8EZUUnJAIk,6
|
|
8
|
+
klint-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
klint
|