guage-kit 0.1.0__tar.gz
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.
- guage_kit-0.1.0/.gitignore +51 -0
- guage_kit-0.1.0/CHANGELOG.md +41 -0
- guage_kit-0.1.0/LICENSE +52 -0
- guage_kit-0.1.0/PKG-INFO +170 -0
- guage_kit-0.1.0/README.md +107 -0
- guage_kit-0.1.0/pyproject.toml +156 -0
- guage_kit-0.1.0/src/guage_kit/__init__.py +89 -0
- guage_kit-0.1.0/src/guage_kit/__main__.py +3 -0
- guage_kit-0.1.0/src/guage_kit/cli.py +805 -0
- guage_kit-0.1.0/src/guage_kit/config.py +240 -0
- guage_kit-0.1.0/src/guage_kit/core/__init__.py +26 -0
- guage_kit-0.1.0/src/guage_kit/core/dataset.py +351 -0
- guage_kit-0.1.0/src/guage_kit/core/results.py +186 -0
- guage_kit-0.1.0/src/guage_kit/core/sample.py +149 -0
- guage_kit-0.1.0/src/guage_kit/demo.py +556 -0
- guage_kit-0.1.0/src/guage_kit/errors.py +42 -0
- guage_kit-0.1.0/src/guage_kit/harness/__init__.py +5 -0
- guage_kit-0.1.0/src/guage_kit/harness/catalogue.py +232 -0
- guage_kit-0.1.0/src/guage_kit/harness/convert.py +271 -0
- guage_kit-0.1.0/src/guage_kit/harness/negotiation.py +109 -0
- guage_kit-0.1.0/src/guage_kit/judges/__init__.py +41 -0
- guage_kit-0.1.0/src/guage_kit/judges/calibration.py +81 -0
- guage_kit-0.1.0/src/guage_kit/judges/criteria.py +185 -0
- guage_kit-0.1.0/src/guage_kit/judges/judge.py +392 -0
- guage_kit-0.1.0/src/guage_kit/judges/providers.py +322 -0
- guage_kit-0.1.0/src/guage_kit/metrics/__init__.py +55 -0
- guage_kit-0.1.0/src/guage_kit/metrics/_text.py +264 -0
- guage_kit-0.1.0/src/guage_kit/metrics/agent.py +148 -0
- guage_kit-0.1.0/src/guage_kit/metrics/classification.py +282 -0
- guage_kit-0.1.0/src/guage_kit/metrics/embeddings.py +191 -0
- guage_kit-0.1.0/src/guage_kit/metrics/judged.py +54 -0
- guage_kit-0.1.0/src/guage_kit/metrics/rag.py +268 -0
- guage_kit-0.1.0/src/guage_kit/metrics/registry.py +405 -0
- guage_kit-0.1.0/src/guage_kit/metrics/retrieval.py +109 -0
- guage_kit-0.1.0/src/guage_kit/metrics/runtime.py +103 -0
- guage_kit-0.1.0/src/guage_kit/metrics/safety.py +241 -0
- guage_kit-0.1.0/src/guage_kit/metrics/semantic.py +150 -0
- guage_kit-0.1.0/src/guage_kit/metrics/structured.py +265 -0
- guage_kit-0.1.0/src/guage_kit/metrics/text.py +516 -0
- guage_kit-0.1.0/src/guage_kit/probes/__init__.py +306 -0
- guage_kit-0.1.0/src/guage_kit/py.typed +0 -0
- guage_kit-0.1.0/src/guage_kit/pytest_plugin.py +141 -0
- guage_kit-0.1.0/src/guage_kit/reports/__init__.py +127 -0
- guage_kit-0.1.0/src/guage_kit/reports/assets/report.css +117 -0
- guage_kit-0.1.0/src/guage_kit/reports/assets/report.html +31 -0
- guage_kit-0.1.0/src/guage_kit/reports/assets/report.js +545 -0
- guage_kit-0.1.0/src/guage_kit/reports/html.py +225 -0
- guage_kit-0.1.0/src/guage_kit/runner/__init__.py +20 -0
- guage_kit-0.1.0/src/guage_kit/runner/compare.py +279 -0
- guage_kit-0.1.0/src/guage_kit/runner/evaluate.py +633 -0
- guage_kit-0.1.0/src/guage_kit/runner/store.py +94 -0
- guage_kit-0.1.0/src/guage_kit/runner/target.py +199 -0
- guage_kit-0.1.0/src/guage_kit/stats/__init__.py +262 -0
- guage_kit-0.1.0/src/guage_kit/synth/__init__.py +191 -0
- guage_kit-0.1.0/src/guage_kit/version.py +3 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Keep this list narrow: hatch builds from what git does not ignore, so a broad pattern silently drops package files
|
|
2
|
+
# (tests/test_docs.py fails if any file under src/ is ignored).
|
|
3
|
+
|
|
4
|
+
# Python
|
|
5
|
+
__pycache__/
|
|
6
|
+
*.py[cod]
|
|
7
|
+
*.egg-info/
|
|
8
|
+
.eggs/
|
|
9
|
+
/build/
|
|
10
|
+
/dist/
|
|
11
|
+
.venv/
|
|
12
|
+
venv/
|
|
13
|
+
.python-version
|
|
14
|
+
|
|
15
|
+
# Tools and caches
|
|
16
|
+
.pytest_cache/
|
|
17
|
+
.mypy_cache/
|
|
18
|
+
.ruff_cache/
|
|
19
|
+
.coverage
|
|
20
|
+
.coverage.*
|
|
21
|
+
coverage.xml
|
|
22
|
+
htmlcov/
|
|
23
|
+
.hypothesis/
|
|
24
|
+
.tox/
|
|
25
|
+
.nox/
|
|
26
|
+
|
|
27
|
+
# Secrets and local settings
|
|
28
|
+
.env
|
|
29
|
+
.env.*
|
|
30
|
+
!.env.example
|
|
31
|
+
.vscode/
|
|
32
|
+
.idea/
|
|
33
|
+
.DS_Store
|
|
34
|
+
|
|
35
|
+
# Guage Kit working state and generated output
|
|
36
|
+
.guage/
|
|
37
|
+
.ananke/
|
|
38
|
+
/reports/
|
|
39
|
+
/guage-demo/
|
|
40
|
+
/scan-report/
|
|
41
|
+
/trivy-report.json
|
|
42
|
+
/trivy-results.sarif
|
|
43
|
+
.acceptance-venv/
|
|
44
|
+
acceptance/report/
|
|
45
|
+
acceptance/fixtures/projects/*/reports/
|
|
46
|
+
|
|
47
|
+
# Astro website
|
|
48
|
+
website/node_modules/
|
|
49
|
+
website/dist/
|
|
50
|
+
website/.astro/
|
|
51
|
+
website/public/demo/
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes are recorded here. The project follows [semantic versioning](https://semver.org/).
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [0.1.0] - 2026-11-24
|
|
8
|
+
|
|
9
|
+
First public release: a complete rewrite of the earlier prototype, rebuilt on Ananke Plexus.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- **Evaluation engine** (`guage_kit.evaluate`): datasets from JSON Lines, JSON, YAML, CSV or TSV with field aliases;
|
|
13
|
+
optional target (your function, `module:function` or a model) with concurrency, retries and repeats
|
|
14
|
+
(`self_consistency`); automatic metric selection from the fields present; bootstrap confidence intervals for
|
|
15
|
+
sample and corpus metrics; slices by tag or metadata; reproducible run files with dataset fingerprints, versions
|
|
16
|
+
and git revision.
|
|
17
|
+
- **90 native metrics** across text, semantic similarity, RAG, retrieval, classification, calibration, embeddings,
|
|
18
|
+
structured output, safety, agents, runtime and judges. BLEU, chrF and ROUGE match sacreBLEU and rouge-score;
|
|
19
|
+
retrieval and classification metrics match scikit-learn (tested).
|
|
20
|
+
- **77 Ananke Plexus evaluators** discovered from the installed harness and exposed as `ananke.*` metrics, with
|
|
21
|
+
arguments resolved from parameters, `metadata.ananke` or expected tool calls.
|
|
22
|
+
- **Judges**: 11 anchored criteria and custom rubrics; Claude through the official SDK (structured verdicts,
|
|
23
|
+
server-side refusal fallbacks), OpenAI-compatible servers, Ollama, Amazon Bedrock and any function; on-disk cache,
|
|
24
|
+
self-consistency, pairwise comparison with order swapping, an offline heuristic judge, and agreement statistics
|
|
25
|
+
against human labels.
|
|
26
|
+
- **Comparisons**: paired bootstrap intervals, permutation and sign tests, Holm correction, effect sizes, sample
|
|
27
|
+
regressions; pairwise judging of two runs; named baselines and `max_drop` regression gates.
|
|
28
|
+
- **Gates** decided by Ananke's policy engine (PASS / WARN / REVIEW / BLOCK), exit codes and `--fail-on`;
|
|
29
|
+
Ananke evidence bundles.
|
|
30
|
+
- **Reports**: an offline single-file HTML report (overview, metrics, slices heatmap, samples with explanations,
|
|
31
|
+
comparison forest plot) with a hash-locked Content Security Policy and a public profile; Markdown, JUnit XML, JSON.
|
|
32
|
+
- **CLI** `guage`: init, run, report, compare, runs, baseline, metrics, data, judge calibrate, probe, synth, demo,
|
|
33
|
+
doctor, version.
|
|
34
|
+
- **pytest plugin** with the `guage` fixture, `--guage-report` and `--guage-junit`.
|
|
35
|
+
- **Probes**: perturbation robustness and a red-team set (direct and indirect prompt injection with canaries, system
|
|
36
|
+
prompt and personal-data extraction, over-refusal).
|
|
37
|
+
- **Synthetic data**: chunking, offline cloze questions, model-generated grounded questions.
|
|
38
|
+
- Documentation site, acceptance suite and release gate, distribution scan, licence check.
|
|
39
|
+
|
|
40
|
+
### Removed
|
|
41
|
+
- The Streamlit interface, the old adapters and notebooks of the prototype. HTML reports replace the interface.
|
guage_kit-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
|
10
|
+
|
|
11
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
|
12
|
+
|
|
13
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
|
14
|
+
|
|
15
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
|
16
|
+
|
|
17
|
+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
|
18
|
+
|
|
19
|
+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
|
20
|
+
|
|
21
|
+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work.
|
|
22
|
+
|
|
23
|
+
"Derivative Works" shall mean any work that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship.
|
|
24
|
+
|
|
25
|
+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work, that is submitted to the Licensor for inclusion in the Work.
|
|
26
|
+
|
|
27
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by the Licensor.
|
|
28
|
+
|
|
29
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
|
30
|
+
|
|
31
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, use, sell, offer for sale, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) were submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
|
32
|
+
|
|
33
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
|
34
|
+
|
|
35
|
+
1. You must give any other recipients of the Work or Derivative Works a copy of this License; and
|
|
36
|
+
2. You must cause any modified files to carry prominent notices stating that You changed the files; and
|
|
37
|
+
3. You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
|
|
38
|
+
4. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works. You may include your own attribution notices within Derivative Works that you distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
|
|
39
|
+
|
|
40
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with the Licensor regarding such Contributions.
|
|
41
|
+
|
|
42
|
+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
|
43
|
+
|
|
44
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
|
45
|
+
|
|
46
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
|
47
|
+
|
|
48
|
+
9. Accepting the License. You accept and agree to be bound by the terms of this License by copying, modifying, or distributing the Work (or any work based on the Work). You may not use, reproduce, or distribute the Work without accepting the License. If you do not accept the terms of this License, you must cease all use and distribution of the Work.
|
|
49
|
+
|
|
50
|
+
10. Future Revisions of this License. The Licensor may publish revised and/or new versions of this License from time to time. Each version will be given a distinguishing version number. Once the License has been published, you may always continue to use the Work under the terms of the License as it was when you received it. If the Work was received from a Contributor, you may also choose to accept the License as it was when you received it from that Contributor. You may also choose to accept a later version of this License published by the Licensor. No one other than the Licensor has the right to modify the terms applicable to the Work created under this License.
|
|
51
|
+
|
|
52
|
+
11. Miscellaneous. This License shall be governed by and interpreted in accordance with the laws of the State of California, excluding its conflict-of-law provisions. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. The language in this License shall be interpreted as to its fair meaning and not strictly for or against any party. This License constitutes the entire agreement between the parties with respect to the Work licensed hereunder and supersedes all prior or contemporaneous agreements, understandings, representations, and warranties, both written and oral, with respect to the Work.
|
guage_kit-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: guage-kit
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Guage Kit: measure LLMs, RAG pipelines, retrieval, embeddings, classifiers and agents. Deterministic metrics, LLM judges, statistics, quality gates, a pytest plugin and offline HTML reports, built on the Ananke Plexus evaluation harness.
|
|
5
|
+
Project-URL: Homepage, https://neo-pragnya.github.io/Guage-Kit/
|
|
6
|
+
Project-URL: Documentation, https://neo-pragnya.github.io/Guage-Kit/docs/
|
|
7
|
+
Project-URL: Repository, https://github.com/Neo-Pragnya/Guage-Kit
|
|
8
|
+
Project-URL: Issues, https://github.com/Neo-Pragnya/Guage-Kit/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/Neo-Pragnya/Guage-Kit/blob/main/CHANGELOG.md
|
|
10
|
+
Author: Neo Pragnya
|
|
11
|
+
License-Expression: Apache-2.0
|
|
12
|
+
License-File: LICENSE
|
|
13
|
+
Keywords: agent-evaluation,ananke,embeddings,llm-as-a-judge,llm-evaluation,metrics,pytest,quality-gates,rag-evaluation,retrieval
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Environment :: Console
|
|
16
|
+
Classifier: Framework :: Pytest
|
|
17
|
+
Classifier: Intended Audience :: Developers
|
|
18
|
+
Classifier: Intended Audience :: Science/Research
|
|
19
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
20
|
+
Classifier: Operating System :: OS Independent
|
|
21
|
+
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
26
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
27
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
28
|
+
Classifier: Topic :: Software Development :: Testing
|
|
29
|
+
Classifier: Typing :: Typed
|
|
30
|
+
Requires-Python: >=3.11
|
|
31
|
+
Requires-Dist: ananke-plexus<0.4,>=0.3.45
|
|
32
|
+
Requires-Dist: pydantic<3,>=2.11
|
|
33
|
+
Requires-Dist: pyyaml<7,>=6
|
|
34
|
+
Requires-Dist: rich>=13
|
|
35
|
+
Requires-Dist: typer<1,>=0.16
|
|
36
|
+
Provides-Extra: all
|
|
37
|
+
Requires-Dist: anthropic>=2; extra == 'all'
|
|
38
|
+
Requires-Dist: boto3>=1.34; extra == 'all'
|
|
39
|
+
Requires-Dist: jsonschema>=4.23; extra == 'all'
|
|
40
|
+
Requires-Dist: sentence-transformers>=3; extra == 'all'
|
|
41
|
+
Provides-Extra: anthropic
|
|
42
|
+
Requires-Dist: anthropic>=2; extra == 'anthropic'
|
|
43
|
+
Provides-Extra: bedrock
|
|
44
|
+
Requires-Dist: boto3>=1.34; extra == 'bedrock'
|
|
45
|
+
Provides-Extra: dev
|
|
46
|
+
Requires-Dist: hatchling>=1.26; extra == 'dev'
|
|
47
|
+
Requires-Dist: mypy>=1.15; extra == 'dev'
|
|
48
|
+
Requires-Dist: pytest-bdd>=9.0.1; extra == 'dev'
|
|
49
|
+
Requires-Dist: pytest-cov>=6; extra == 'dev'
|
|
50
|
+
Requires-Dist: pytest-xdist>=3; extra == 'dev'
|
|
51
|
+
Requires-Dist: pytest>=8; extra == 'dev'
|
|
52
|
+
Requires-Dist: rouge-score>=0.1.2; extra == 'dev'
|
|
53
|
+
Requires-Dist: ruff>=0.12; extra == 'dev'
|
|
54
|
+
Requires-Dist: sacrebleu>=2.4; extra == 'dev'
|
|
55
|
+
Requires-Dist: scikit-learn>=1.5; extra == 'dev'
|
|
56
|
+
Requires-Dist: scipy>=1.13; extra == 'dev'
|
|
57
|
+
Requires-Dist: types-pyyaml>=6; extra == 'dev'
|
|
58
|
+
Provides-Extra: embeddings
|
|
59
|
+
Requires-Dist: sentence-transformers>=3; extra == 'embeddings'
|
|
60
|
+
Provides-Extra: jsonschema
|
|
61
|
+
Requires-Dist: jsonschema>=4.23; extra == 'jsonschema'
|
|
62
|
+
Description-Content-Type: text/markdown
|
|
63
|
+
|
|
64
|
+
# Guage Kit
|
|
65
|
+
|
|
66
|
+
**Measure every layer of an AI system: LLM answers, RAG pipelines, retrieval, embeddings, classifiers and agents.
|
|
67
|
+
Deterministic metrics first, LLM judges when you want them, real statistics, quality gates for CI, and one offline
|
|
68
|
+
HTML report per run. Built on the [Ananke Plexus](https://github.com/Neo-Pragnya/Ananke-Plexus) evaluation harness.**
|
|
69
|
+
|
|
70
|
+
[](https://pypi.org/project/guage-kit/)
|
|
71
|
+
[](https://pypi.org/project/guage-kit/)
|
|
72
|
+
[](LICENSE)
|
|
73
|
+
[](https://neo-pragnya.github.io/Guage-Kit/)
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pip install guage-kit
|
|
77
|
+
guage demo # three systems evaluated offline, reports written to ./guage-demo
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## What it does
|
|
81
|
+
|
|
82
|
+
| | |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| **90 metrics, no model needed** | exact/normalised match, token F1, BLEU, chrF/chrF++, ROUGE-1/2/L/Lsum, edit distance; RAG faithfulness, hallucination rate, context precision/recall/relevance/utilisation, citation accuracy, answer correctness; precision/recall/hit@k, MRR, MAP, nDCG (graded); accuracy, macro/micro/weighted F1, kappa, MCC; ECE, MCE, Brier, selective AUROC; STS correlation, alignment, uniformity, anisotropy; JSON/YAML validity, JSON Schema, field accuracy; PII, secrets, prompt-injection, system-prompt leakage, refusals, toxicity, counterfactual consistency; tool-call F1, argument accuracy, sequence match; latency percentiles, tokens, cost |
|
|
85
|
+
| **77 agent evaluators from Ananke** | trajectory, tool use, planning, safety boundaries, resilience, efficiency, multi-agent hand-offs: discovered from the installed harness and run as `ananke.*` metrics |
|
|
86
|
+
| **LLM judges** | 11 anchored criteria or your own rubric; Claude (official SDK), OpenAI-compatible servers, Ollama, Bedrock or any function; on-disk cache, self-consistency, pairwise with order swapping, injection-safe prompts, agreement with human labels |
|
|
87
|
+
| **Statistics** | bootstrap confidence intervals on every number (corpus metrics too); paired bootstrap, permutation and sign tests with Holm correction for comparisons; sample-size planning |
|
|
88
|
+
| **Gates and CI** | `min`/`max`/`max_drop` rules decided by Ananke's policy engine into PASS, WARN, REVIEW or BLOCK; exit codes, JUnit XML, Markdown summaries, Ananke evidence bundles |
|
|
89
|
+
| **Reports** | one self-contained HTML file: overview, metric distributions, slices heatmap, every sample with its explanations, before/after comparison; offline and locked down by its Content Security Policy |
|
|
90
|
+
| **Everything else** | run your own system as a target, `guage.yaml` suites, a pytest plugin, robustness and red-team probes, synthetic test sets from your documents |
|
|
91
|
+
|
|
92
|
+
## Sixty seconds
|
|
93
|
+
|
|
94
|
+
```python
|
|
95
|
+
import guage_kit as gk
|
|
96
|
+
|
|
97
|
+
def my_rag(question: str) -> dict: # your system under test
|
|
98
|
+
docs = retriever.search(question, k=5)
|
|
99
|
+
return {"output": llm.answer(question, docs), "contexts": [d.text for d in docs], "retrieved_ids": [d.id for d in docs]}
|
|
100
|
+
|
|
101
|
+
run = gk.evaluate(
|
|
102
|
+
"support_questions.jsonl", # question, ground_truth, relevant_ids per line
|
|
103
|
+
["token_f1", "faithfulness", "context_recall", "recall@5", "mrr",
|
|
104
|
+
{"name": "judge", "params": {"criterion": "correctness"}, "as": "judge_correctness"}],
|
|
105
|
+
target=my_rag,
|
|
106
|
+
judge="anthropic:claude-opus-5-5", # or "heuristic" to stay offline
|
|
107
|
+
gates=[{"metric": "faithfulness", "min": 0.85}, {"metric": "recall@5", "min": 0.8, "on_fail": "warn"}],
|
|
108
|
+
slices=["tags"],
|
|
109
|
+
)
|
|
110
|
+
print(run.gate.verdict, run.value("faithfulness"), run.summaries["faithfulness"].ci_low)
|
|
111
|
+
gk.report(run, "report.html")
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Or from the command line:
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
guage init # guage.yaml + a sample dataset
|
|
118
|
+
guage run # evaluate, gate, write reports (exit 1 when the gate blocks)
|
|
119
|
+
guage baseline set # remember this run
|
|
120
|
+
guage run && guage compare baseline:main latest -o compare.html
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
In pytest:
|
|
124
|
+
|
|
125
|
+
```python
|
|
126
|
+
def test_answers_are_grounded(guage):
|
|
127
|
+
run = guage.evaluate("tests/data/qa.jsonl", ["faithfulness", "recall@5"], target=my_rag)
|
|
128
|
+
guage.check(run, faithfulness=0.85, recall__at__5=0.8)
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
## Install
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
pip install guage-kit # core: offline metrics, reports, CLI, pytest plugin
|
|
135
|
+
pip install "guage-kit[anthropic]" # Claude judges and targets (official SDK)
|
|
136
|
+
pip install "guage-kit[embeddings]" # sentence-transformers for semantic metrics
|
|
137
|
+
pip install "guage-kit[all]" # anthropic, embeddings, jsonschema, bedrock
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
Python 3.11–3.14. Every runtime dependency is permissively licensed (Apache-2.0, MIT, BSD, ISC, PSF; certifi is
|
|
141
|
+
MPL-2.0); `make licenses` checks it. See [licensing](docs/concepts/licensing.md).
|
|
142
|
+
|
|
143
|
+
## Documentation
|
|
144
|
+
|
|
145
|
+
The full documentation is on the [website](https://neo-pragnya.github.io/Guage-Kit/) and in [docs/](docs/index.md):
|
|
146
|
+
[getting started](docs/guides/getting-started.md) · [datasets](docs/guides/datasets.md) ·
|
|
147
|
+
[targets](docs/guides/targets.md) · [metrics](docs/guides/metrics.md) · [RAG](docs/guides/rag.md) ·
|
|
148
|
+
[agents](docs/guides/agents.md) · [judges](docs/guides/judges.md) · [statistics](docs/guides/statistics.md) ·
|
|
149
|
+
[gates and CI](docs/guides/gates-and-ci.md) · [reports](docs/guides/reports.md) · [pytest](docs/guides/pytest.md) ·
|
|
150
|
+
[safety and red teaming](docs/guides/safety-and-red-teaming.md) · [CLI](docs/reference/cli.md) ·
|
|
151
|
+
[metric catalogue](docs/reference/metrics.md) · [configuration](docs/reference/configuration.md).
|
|
152
|
+
|
|
153
|
+
## How it relates to Ananke Plexus
|
|
154
|
+
|
|
155
|
+
Ananke Plexus owns the canonical evaluation model (cases, agent traces, scores), its agent evaluators, the gate
|
|
156
|
+
policy engine and evidence bundles. Guage Kit builds the evaluation product on top: the metric library, judges,
|
|
157
|
+
statistics, the runner, reports, CLI and pytest plugin. Results convert both ways, so a Guage Kit run can be filed as
|
|
158
|
+
Ananke evidence and gated by the same policy as the rest of an Ananke-governed project. See
|
|
159
|
+
[architecture](docs/concepts/architecture.md).
|
|
160
|
+
|
|
161
|
+
## Development
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
make install # uv sync with dev tools
|
|
165
|
+
make verify # ruff, format check, mypy --strict, pytest, licence check, generated docs check
|
|
166
|
+
make acceptance # 47 capability scenarios driving the real CLI; the release gate
|
|
167
|
+
make scan # build and scan the wheel and sdist the way package firewalls do
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md). Licensed under [Apache-2.0](LICENSE).
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
# Guage Kit
|
|
2
|
+
|
|
3
|
+
**Measure every layer of an AI system: LLM answers, RAG pipelines, retrieval, embeddings, classifiers and agents.
|
|
4
|
+
Deterministic metrics first, LLM judges when you want them, real statistics, quality gates for CI, and one offline
|
|
5
|
+
HTML report per run. Built on the [Ananke Plexus](https://github.com/Neo-Pragnya/Ananke-Plexus) evaluation harness.**
|
|
6
|
+
|
|
7
|
+
[](https://pypi.org/project/guage-kit/)
|
|
8
|
+
[](https://pypi.org/project/guage-kit/)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[](https://neo-pragnya.github.io/Guage-Kit/)
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
pip install guage-kit
|
|
14
|
+
guage demo # three systems evaluated offline, reports written to ./guage-demo
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## What it does
|
|
18
|
+
|
|
19
|
+
| | |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| **90 metrics, no model needed** | exact/normalised match, token F1, BLEU, chrF/chrF++, ROUGE-1/2/L/Lsum, edit distance; RAG faithfulness, hallucination rate, context precision/recall/relevance/utilisation, citation accuracy, answer correctness; precision/recall/hit@k, MRR, MAP, nDCG (graded); accuracy, macro/micro/weighted F1, kappa, MCC; ECE, MCE, Brier, selective AUROC; STS correlation, alignment, uniformity, anisotropy; JSON/YAML validity, JSON Schema, field accuracy; PII, secrets, prompt-injection, system-prompt leakage, refusals, toxicity, counterfactual consistency; tool-call F1, argument accuracy, sequence match; latency percentiles, tokens, cost |
|
|
22
|
+
| **77 agent evaluators from Ananke** | trajectory, tool use, planning, safety boundaries, resilience, efficiency, multi-agent hand-offs: discovered from the installed harness and run as `ananke.*` metrics |
|
|
23
|
+
| **LLM judges** | 11 anchored criteria or your own rubric; Claude (official SDK), OpenAI-compatible servers, Ollama, Bedrock or any function; on-disk cache, self-consistency, pairwise with order swapping, injection-safe prompts, agreement with human labels |
|
|
24
|
+
| **Statistics** | bootstrap confidence intervals on every number (corpus metrics too); paired bootstrap, permutation and sign tests with Holm correction for comparisons; sample-size planning |
|
|
25
|
+
| **Gates and CI** | `min`/`max`/`max_drop` rules decided by Ananke's policy engine into PASS, WARN, REVIEW or BLOCK; exit codes, JUnit XML, Markdown summaries, Ananke evidence bundles |
|
|
26
|
+
| **Reports** | one self-contained HTML file: overview, metric distributions, slices heatmap, every sample with its explanations, before/after comparison; offline and locked down by its Content Security Policy |
|
|
27
|
+
| **Everything else** | run your own system as a target, `guage.yaml` suites, a pytest plugin, robustness and red-team probes, synthetic test sets from your documents |
|
|
28
|
+
|
|
29
|
+
## Sixty seconds
|
|
30
|
+
|
|
31
|
+
```python
|
|
32
|
+
import guage_kit as gk
|
|
33
|
+
|
|
34
|
+
def my_rag(question: str) -> dict: # your system under test
|
|
35
|
+
docs = retriever.search(question, k=5)
|
|
36
|
+
return {"output": llm.answer(question, docs), "contexts": [d.text for d in docs], "retrieved_ids": [d.id for d in docs]}
|
|
37
|
+
|
|
38
|
+
run = gk.evaluate(
|
|
39
|
+
"support_questions.jsonl", # question, ground_truth, relevant_ids per line
|
|
40
|
+
["token_f1", "faithfulness", "context_recall", "recall@5", "mrr",
|
|
41
|
+
{"name": "judge", "params": {"criterion": "correctness"}, "as": "judge_correctness"}],
|
|
42
|
+
target=my_rag,
|
|
43
|
+
judge="anthropic:claude-opus-5-5", # or "heuristic" to stay offline
|
|
44
|
+
gates=[{"metric": "faithfulness", "min": 0.85}, {"metric": "recall@5", "min": 0.8, "on_fail": "warn"}],
|
|
45
|
+
slices=["tags"],
|
|
46
|
+
)
|
|
47
|
+
print(run.gate.verdict, run.value("faithfulness"), run.summaries["faithfulness"].ci_low)
|
|
48
|
+
gk.report(run, "report.html")
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Or from the command line:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
guage init # guage.yaml + a sample dataset
|
|
55
|
+
guage run # evaluate, gate, write reports (exit 1 when the gate blocks)
|
|
56
|
+
guage baseline set # remember this run
|
|
57
|
+
guage run && guage compare baseline:main latest -o compare.html
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
In pytest:
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
def test_answers_are_grounded(guage):
|
|
64
|
+
run = guage.evaluate("tests/data/qa.jsonl", ["faithfulness", "recall@5"], target=my_rag)
|
|
65
|
+
guage.check(run, faithfulness=0.85, recall__at__5=0.8)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Install
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
pip install guage-kit # core: offline metrics, reports, CLI, pytest plugin
|
|
72
|
+
pip install "guage-kit[anthropic]" # Claude judges and targets (official SDK)
|
|
73
|
+
pip install "guage-kit[embeddings]" # sentence-transformers for semantic metrics
|
|
74
|
+
pip install "guage-kit[all]" # anthropic, embeddings, jsonschema, bedrock
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
Python 3.11–3.14. Every runtime dependency is permissively licensed (Apache-2.0, MIT, BSD, ISC, PSF; certifi is
|
|
78
|
+
MPL-2.0); `make licenses` checks it. See [licensing](docs/concepts/licensing.md).
|
|
79
|
+
|
|
80
|
+
## Documentation
|
|
81
|
+
|
|
82
|
+
The full documentation is on the [website](https://neo-pragnya.github.io/Guage-Kit/) and in [docs/](docs/index.md):
|
|
83
|
+
[getting started](docs/guides/getting-started.md) · [datasets](docs/guides/datasets.md) ·
|
|
84
|
+
[targets](docs/guides/targets.md) · [metrics](docs/guides/metrics.md) · [RAG](docs/guides/rag.md) ·
|
|
85
|
+
[agents](docs/guides/agents.md) · [judges](docs/guides/judges.md) · [statistics](docs/guides/statistics.md) ·
|
|
86
|
+
[gates and CI](docs/guides/gates-and-ci.md) · [reports](docs/guides/reports.md) · [pytest](docs/guides/pytest.md) ·
|
|
87
|
+
[safety and red teaming](docs/guides/safety-and-red-teaming.md) · [CLI](docs/reference/cli.md) ·
|
|
88
|
+
[metric catalogue](docs/reference/metrics.md) · [configuration](docs/reference/configuration.md).
|
|
89
|
+
|
|
90
|
+
## How it relates to Ananke Plexus
|
|
91
|
+
|
|
92
|
+
Ananke Plexus owns the canonical evaluation model (cases, agent traces, scores), its agent evaluators, the gate
|
|
93
|
+
policy engine and evidence bundles. Guage Kit builds the evaluation product on top: the metric library, judges,
|
|
94
|
+
statistics, the runner, reports, CLI and pytest plugin. Results convert both ways, so a Guage Kit run can be filed as
|
|
95
|
+
Ananke evidence and gated by the same policy as the rest of an Ananke-governed project. See
|
|
96
|
+
[architecture](docs/concepts/architecture.md).
|
|
97
|
+
|
|
98
|
+
## Development
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
make install # uv sync with dev tools
|
|
102
|
+
make verify # ruff, format check, mypy --strict, pytest, licence check, generated docs check
|
|
103
|
+
make acceptance # 47 capability scenarios driving the real CLI; the release gate
|
|
104
|
+
make scan # build and scan the wheel and sdist the way package firewalls do
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md). Licensed under [Apache-2.0](LICENSE).
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.26"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "guage-kit"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
description = "Guage Kit: measure LLMs, RAG pipelines, retrieval, embeddings, classifiers and agents. Deterministic metrics, LLM judges, statistics, quality gates, a pytest plugin and offline HTML reports, built on the Ananke Plexus evaluation harness."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE"]
|
|
13
|
+
authors = [{ name = "Neo Pragnya" }]
|
|
14
|
+
keywords = [
|
|
15
|
+
"llm-evaluation",
|
|
16
|
+
"rag-evaluation",
|
|
17
|
+
"agent-evaluation",
|
|
18
|
+
"llm-as-a-judge",
|
|
19
|
+
"retrieval",
|
|
20
|
+
"embeddings",
|
|
21
|
+
"metrics",
|
|
22
|
+
"quality-gates",
|
|
23
|
+
"pytest",
|
|
24
|
+
"ananke",
|
|
25
|
+
]
|
|
26
|
+
classifiers = [
|
|
27
|
+
"Development Status :: 3 - Alpha",
|
|
28
|
+
"Intended Audience :: Developers",
|
|
29
|
+
"Intended Audience :: Science/Research",
|
|
30
|
+
"License :: OSI Approved :: Apache Software License",
|
|
31
|
+
"Environment :: Console",
|
|
32
|
+
"Framework :: Pytest",
|
|
33
|
+
"Operating System :: OS Independent",
|
|
34
|
+
"Programming Language :: Python :: 3",
|
|
35
|
+
"Programming Language :: Python :: 3.11",
|
|
36
|
+
"Programming Language :: Python :: 3.12",
|
|
37
|
+
"Programming Language :: Python :: 3.13",
|
|
38
|
+
"Programming Language :: Python :: 3.14",
|
|
39
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
40
|
+
"Topic :: Software Development :: Quality Assurance",
|
|
41
|
+
"Topic :: Software Development :: Testing",
|
|
42
|
+
"Typing :: Typed",
|
|
43
|
+
]
|
|
44
|
+
# Guage Kit is a client of Ananke Plexus: Ananke owns the canonical eval models, agent-trace evaluators, gate
|
|
45
|
+
# decisions and evidence bundles (docs/concepts/architecture.md). Keep this range in step with SUPPORTED_ANANKE in
|
|
46
|
+
# src/guage_kit/harness/negotiation.py (tests/test_packaging.py checks it).
|
|
47
|
+
# Every runtime dependency is permissively licensed (scripts/check_licenses.py enforces it).
|
|
48
|
+
dependencies = [
|
|
49
|
+
"ananke-plexus>=0.3.45,<0.4",
|
|
50
|
+
"pydantic>=2.11,<3",
|
|
51
|
+
"PyYAML>=6,<7",
|
|
52
|
+
"rich>=13",
|
|
53
|
+
"typer>=0.16,<1",
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
[project.optional-dependencies]
|
|
57
|
+
# Neural similarity (embedding cosine, BERTScore-style matching). Apache-2.0.
|
|
58
|
+
embeddings = ["sentence-transformers>=3"]
|
|
59
|
+
# Full JSON Schema validation (the built-in validator covers the common subset). MIT.
|
|
60
|
+
jsonschema = ["jsonschema>=4.23"]
|
|
61
|
+
# Claude judges and targets through the official Anthropic SDK. Apache-2.0.
|
|
62
|
+
anthropic = ["anthropic>=2"]
|
|
63
|
+
# Amazon Bedrock judges and targets. Apache-2.0.
|
|
64
|
+
bedrock = ["boto3>=1.34"]
|
|
65
|
+
all = ["guage-kit[anthropic,embeddings,jsonschema,bedrock]"]
|
|
66
|
+
dev = [
|
|
67
|
+
"hatchling>=1.26",
|
|
68
|
+
"mypy>=1.15",
|
|
69
|
+
"pytest>=8",
|
|
70
|
+
"pytest-bdd>=9.0.1",
|
|
71
|
+
"pytest-cov>=6",
|
|
72
|
+
"pytest-xdist>=3",
|
|
73
|
+
"ruff>=0.12",
|
|
74
|
+
"types-pyyaml>=6",
|
|
75
|
+
# reference implementations, used only as test oracles (all permissive: Apache-2.0 / BSD-3-Clause)
|
|
76
|
+
"sacrebleu>=2.4",
|
|
77
|
+
"rouge-score>=0.1.2",
|
|
78
|
+
"scikit-learn>=1.5",
|
|
79
|
+
"scipy>=1.13",
|
|
80
|
+
]
|
|
81
|
+
|
|
82
|
+
[project.scripts]
|
|
83
|
+
guage = "guage_kit.cli:main"
|
|
84
|
+
guage-kit = "guage_kit.cli:main"
|
|
85
|
+
|
|
86
|
+
[project.entry-points.pytest11]
|
|
87
|
+
guage_kit = "guage_kit.pytest_plugin"
|
|
88
|
+
|
|
89
|
+
[project.urls]
|
|
90
|
+
Homepage = "https://neo-pragnya.github.io/Guage-Kit/"
|
|
91
|
+
Documentation = "https://neo-pragnya.github.io/Guage-Kit/docs/"
|
|
92
|
+
Repository = "https://github.com/Neo-Pragnya/Guage-Kit"
|
|
93
|
+
Issues = "https://github.com/Neo-Pragnya/Guage-Kit/issues"
|
|
94
|
+
Changelog = "https://github.com/Neo-Pragnya/Guage-Kit/blob/main/CHANGELOG.md"
|
|
95
|
+
|
|
96
|
+
[tool.hatch.version]
|
|
97
|
+
path = "src/guage_kit/version.py"
|
|
98
|
+
|
|
99
|
+
[tool.hatch.build.targets.wheel]
|
|
100
|
+
packages = ["src/guage_kit"] # includes reports/assets and the demo datasets
|
|
101
|
+
# 2.4 is the newest metadata most SCA parsers read; 2.5 made firewalls see an unknown component
|
|
102
|
+
core-metadata-version = "2.4"
|
|
103
|
+
|
|
104
|
+
[tool.hatch.build.targets.sdist]
|
|
105
|
+
core-metadata-version = "2.4"
|
|
106
|
+
# Anchored: an unanchored "src" also matches website/node_modules/*/src.
|
|
107
|
+
include = ["/src", "/README.md", "/LICENSE", "/CHANGELOG.md"]
|
|
108
|
+
|
|
109
|
+
[tool.ruff]
|
|
110
|
+
line-length = 100
|
|
111
|
+
target-version = "py311"
|
|
112
|
+
extend-exclude = ["website", "acceptance/harness.py", "scripts/scan_dist.py"]
|
|
113
|
+
|
|
114
|
+
[tool.ruff.lint]
|
|
115
|
+
select = ["E", "F", "I", "B", "S", "UP", "SIM", "RUF"]
|
|
116
|
+
ignore = ["B008", "E501", "RUF001", "RUF002", "RUF003"] # B008: Typer defaults; E501: ruff format owns line length; RUF00x: typographic dashes and signs in prose are deliberate
|
|
117
|
+
|
|
118
|
+
[tool.ruff.lint.per-file-ignores]
|
|
119
|
+
"tests/**/*.py" = ["S101", "S603", "S607", "S311", "S108", "S314"]
|
|
120
|
+
"acceptance/**/*.py" = ["S101", "S603", "S607", "S108"]
|
|
121
|
+
# S311: seeded random.Random drives bootstrap resampling and perturbations, never crypto
|
|
122
|
+
"src/guage_kit/stats/*.py" = ["S311"]
|
|
123
|
+
"src/guage_kit/probes/*.py" = ["S311"]
|
|
124
|
+
"src/guage_kit/core/dataset.py" = ["S311"]
|
|
125
|
+
"src/guage_kit/synth/*.py" = ["S311"]
|
|
126
|
+
"src/guage_kit/metrics/embeddings.py" = ["S311"]
|
|
127
|
+
"src/guage_kit/runner/compare.py" = ["S311"]
|
|
128
|
+
# S603/S607: the git revision is read with a fixed argv (no shell, no input), like any developer tool
|
|
129
|
+
"src/guage_kit/runner/evaluate.py" = ["S311", "S603", "S607"]
|
|
130
|
+
"src/guage_kit/demo.py" = ["S311"]
|
|
131
|
+
|
|
132
|
+
[tool.mypy]
|
|
133
|
+
python_version = "3.12"
|
|
134
|
+
strict = true
|
|
135
|
+
warn_unused_ignores = true
|
|
136
|
+
warn_redundant_casts = true
|
|
137
|
+
files = ["src/guage_kit"]
|
|
138
|
+
|
|
139
|
+
[[tool.mypy.overrides]]
|
|
140
|
+
module = ["ananke.*"]
|
|
141
|
+
follow_untyped_imports = true
|
|
142
|
+
|
|
143
|
+
[[tool.mypy.overrides]]
|
|
144
|
+
module = ["anthropic", "anthropic.*", "sentence_transformers", "sentence_transformers.*", "jsonschema", "jsonschema.*", "boto3", "boto3.*"]
|
|
145
|
+
ignore_missing_imports = true
|
|
146
|
+
|
|
147
|
+
[tool.pytest.ini_options]
|
|
148
|
+
testpaths = ["tests"]
|
|
149
|
+
addopts = "-ra"
|
|
150
|
+
|
|
151
|
+
[tool.coverage.run]
|
|
152
|
+
source = ["src/guage_kit"]
|
|
153
|
+
branch = true
|
|
154
|
+
|
|
155
|
+
[tool.coverage.report]
|
|
156
|
+
show_missing = true
|